Borderou de evaluare (job #785235)

Utilizator avatar coldsh_1 Marcovici Andrei coldsh_1 IP ascuns
Problemă Căutare binară Compilator c-32
Rundă Arhiva de probleme Status evaluat
Dată 1 sept. 2024 15:49:23 Scor 0

Raport evaluator

Compilare: main.c: In function 'main': main.c:14:13: warning: comparison between pointer and integer 14 | if(r=="P") s++; | ^~ main.c:14:13: warning: comparison with string literal results in unspecified behavior [-Waddress] main.c:15:18: warning: comparison between pointer and integer 15 | else if(r=="F") s2++; | ^~ main.c:15:18: warning: comparison with string literal results in unspecified behavior [-Waddress] main.c:16:18: warning: comparison between pointer and integer 16 | else if(r=="M") s3++; | ^~ main.c:16:18: warning: comparison with string literal results in unspecified behavior [-Waddress] main.c:19:21: warning: format '%d' expects argument of type 'int', but argument 3 has type 'int *' [-Wformat=] 19 | fprintf(fout, "%d %d %d %d ", &s, &s2, &s3, &s4); | ~^ ~~ | | | | int int * | %n main.c:19:24: warning: format '%d' expects argument of type 'int', but argument 4 has type 'int *' [-Wformat=] 19 | fprintf(fout, "%d %d %d %d ", &s, &s2, &s3, &s4); | ~^ ~~~ | | | | int int * | %n main.c:19:27: warning: format '%d' expects argument of type 'int', but argument 5 has type 'int *' [-Wformat=] 19 | fprintf(fout, "%d %d %d %d ", &s, &s2, &s3, &s4); | ~^ ~~~ | | | | int int * | %n main.c:19:30: warning: format '%d' expects argument of type 'int', but argument 6 has type 'int *' [-Wformat=] 19 | fprintf(fout, "%d %d %d %d ", &s, &s2, &s3, &s4); | ~^ ~~~ | | | | int int * | %n main.c:10:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 10 | fscanf(fin, "%d%d", &c, &x); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:11:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 11 | fscanf(fin, "%d%d%d%d", &f, &m, &a, &n); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:13:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 13 | fscanf(fin, "%d%d", &r, &nr); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 249 kb Killed by Signal 11 0
2 1 ms 249 kb Killed by Signal 11 0
3 1 ms 249 kb Killed by Signal 11 0
4 2 ms 249 kb Killed by Signal 11 0
5 2 ms 249 kb Killed by Signal 11 0
6 2 ms 249 kb Killed by Signal 11 0
7 2 ms 249 kb Killed by Signal 11 0
8 2 ms 249 kb Killed by Signal 11 0
9 1 ms 249 kb Killed by Signal 11 0
10 1 ms 249 kb Killed by Signal 11 0
Punctaj total 0