Borderou de evaluare (job #791453)

Utilizator avatar rprecupetu Raluca Precupetu rprecupetu IP ascuns
Problemă Centru Prim (clasa a 5-a) Compilator c-32
Rundă Arhiva de probleme Status evaluat
Dată 27 oct. 2024 10:34:56 Scor 0

Raport evaluator

Eroare de compilare: main.c: In function 'main': main.c:11:7: error: expected ';' before 'n' 11 | m=n | ^ | ; 12 | n=n%10; | ~ main.c:14:9: error: 'cif' undeclared (first use in this function) 14 | cif=cif+1; | ^~~ main.c:14:9: note: each undeclared identifier is reported only once for each function it appears in main.c:47:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 47 | if ( d == n ) | ^~ main.c:49:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 49 | fprintf( fout, "%d\n", 1 ); | ^~~~~~~ main.c:50:3: error: 'else' without a previous 'if' 50 | else | ^~~~ main.c:9:4: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 9 | fscanf( fin, "%d", &n ); | ^~~~~~~~~~~~~~~~~~~~~~~