Borderou de evaluare (job #765616)

Utilizator avatar DimofteVictor Dimofte Victor Octavian DimofteVictor IP ascuns
Problemă La școală (clasa a 5-a) Compilator c-32
Rundă Arhiva de probleme Status evaluat
Dată 29 feb. 2024 19:35:41 Scor 100

Raport evaluator

Compilare: main.c: In function 'main': main.c:14:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 14 | if(x * x == n) | ^~ main.c:16:7: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 16 | fprintf(fout, "%d\n", n - x * x); | ^~~~~~~ main.c:18:13: warning: left-hand operand of comma expression has no effect [-Wunused-value] 18 | for(fout, i = x * x; i > 0; i--){ | ^ main.c:10:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 10 | fscanf(fin, "%d", &n); | ^~~~~~~~~~~~~~~~~~~~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 2 ms 245 kb OK 10
2 1 ms 245 kb OK 10
3 1 ms 241 kb OK 10
4 1 ms 245 kb OK 10
5 1 ms 245 kb OK 10
6 1 ms 507 kb OK 10
7 1 ms 245 kb OK 10
8 1 ms 245 kb OK 10
9 1 ms 245 kb OK 10
10 1 ms 245 kb OK 10
Punctaj total 100