Borderou de evaluare (job #731113)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Cifre (clasa a 5-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 5 sept. 2023 13:18:21 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:10:16: error: 'c' was not declared in this scope
10 | fin >> c >> nrs >> rd;
| ^
main.cpp:12:21: error: lvalue required as left operand of assignment
12 | nrs % 10 = nrs;
| ~~~~^~~~
main.cpp:17:6: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
17 | if(nrs%10!=nrs%1000)
| ^~
main.cpp:19:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
19 | fout << rd;
| ^~~~