Borderou de evaluare (job #603371)

Utilizator avatar saranegrila Negrila Sara saranegrila IP ascuns
Problemă Concurs (clasa a 5-a) Compilator c-32
Rundă Arhiva de probleme Status evaluat
Dată 11 aug. 2021 10:06:59 Scor 0

Raport evaluator

Compilare: main.c: In function 'main': main.c:12:10: warning: statement with no effect [-Wunused-value] 12 | for(i>0; i<n; i++) | ~^~ main.c:17:23: warning: format '%d' expects argument of type 'int', but argument 3 has type 'char *' [-Wformat=] 17 | fprintf(fout, "%d\n", "DA"); | ~^ ~~~~ | | | | int char * | %s main.c:24:23: warning: format '%d' expects argument of type 'int', but argument 3 has type 'char *' [-Wformat=] 24 | fprintf(fout, "%d\n", "NU"); | ~^ ~~~~ | | | | int char * | %s main.c:23:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 23 | if(ok==0) | ^~ main.c:25:7: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 25 | fprintf(fout, "%d\n%d", cnto, cnts); | ^~~~~~~ main.c:11:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 11 | fscanf(fin, "%d%d", &a, &n); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:14:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 14 | fscanf(fin, "%d", &b); | ^~~~~~~~~~~~~~~~~~~~~ main.c:12:20: warning: 'i' may be used uninitialized in this function [-Wmaybe-uninitialized] 12 | for(i>0; i<n; i++) | ~^~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 131 kb Incorect 0
2 1 ms 131 kb Incorect 0
3 1 ms 131 kb Incorect 0
4 1 ms 131 kb Incorect 0
5 1 ms 131 kb Incorect 0
6 1 ms 131 kb Incorect 0
7 1 ms 131 kb Incorect 0
8 1 ms 131 kb Incorect 0
9 1 ms 131 kb Incorect 0
10 1 ms 131 kb Incorect 0
Punctaj total 0