Borderou de evaluare (job #854247)

Utilizator avatar NoLife Pop Mihai Alexandru NoLife IP ascuns
Problemă Bip Compilator cpp
Rundă Arhiva de probleme Status evaluat
Dată 23 feb. 2026 15:12:48 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int bip(int)': main.cpp:8:12: error: 'a' was not declared in this scope 8 | if(a%10!=a/10%10) | ^ main.cpp:8:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 8 | if(a%10!=a/10%10) | ^~ main.cpp:10:13: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 10 | if(cnt>1) | ^~ main.cpp:12:9: error: 'a' was not declared in this scope 12 | a/=10; | ^ main.cpp: In function 'int main()': main.cpp:35:9: error: redeclaration of 'int mod' 35 | int mod=n%10; | ^~~ main.cpp:23:25: note: 'int mod' previously declared here 23 | int n, ok=0, cnt=1, mod, mod2, cnt2=0; | ^~~ main.cpp:24:11: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 24 | fscanf(in, "%d", &n); | ~~~~~~^~~~~~~~~~~~~~