Borderou de evaluare (job #594840)

Utilizator avatar ghica_amalia Ghica Amalia ghica_amalia IP ascuns
Problemă Cifre comune (clasa a 5-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 6 apr. 2021 08:50:34 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:36:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 36 | if((n % 10) == (m % 10)) | ^~ main.cpp:38:13: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 38 | n = n / 10; | ^ main.cpp:11:40: warning: variable 'cnn' set but not used [-Wunused-but-set-variable] 11 | int n, m, cnt = 0, cn = 0, cm = 0, cnn = 0, cmm = 0; | ^~~ main.cpp:11:49: warning: variable 'cmm' set but not used [-Wunused-but-set-variable] 11 | int n, m, cnt = 0, cn = 0, cm = 0, cnn = 0, cmm = 0; | ^~~ main.cpp:42:13: error: expected '}' at end of input 42 | return 0; | ^ main.cpp:10:1: note: to match this '{' 10 | { | ^