Borderou de evaluare (job #782055)

Utilizator avatar Roby2206 Staicu Robert Roby2206 IP ascuns
Problemă Cyber (clasa 5-6) Compilator c-32
Rundă Nerdvana SummerCamps - Ed2 - 1 Status evaluat
Dată 11 iul. 2024 09:32:38 Scor 21

Raport evaluator

Compilare: main.c: In function 'main': main.c:30:7: warning: this 'else' clause does not guard... [-Wmisleading-indentation] 30 | else | ^~~~ main.c:32:11: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' 32 | if(max>nr2){ | ^~ main.c:37:24: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 37 | for(i=max ; i>=0 && nr%i!=nr1%i || nr%i!=nr2%i || nr1%i!=nr%i; i--){ | ~~~~~^~~~~~~~~~~~~~ main.c:7:28: warning: unused variable 'k' [-Wunused-variable] 7 | int c1,c2,n,nr,nr1,nr2,k=0,i,max; | ^ main.c:7:12: warning: unused variable 'c2' [-Wunused-variable] 7 | int c1,c2,n,nr,nr1,nr2,k=0,i,max; | ^~ main.c:7:9: warning: unused variable 'c1' [-Wunused-variable] 7 | int c1,c2,n,nr,nr1,nr2,k=0,i,max; | ^~ main.c:10:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 10 | fscanf(fin,"%d",&n); | ^~~~~~~~~~~~~~~~~~~ main.c:12:7: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 12 | fscanf(fin,"%d",&nr); | ^~~~~~~~~~~~~~~~~~~~ main.c:13:7: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 13 | fscanf(fin,"%d",&nr1); | ^~~~~~~~~~~~~~~~~~~~~ main.c:24:7: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 24 | fscanf(fin,"%d",&nr); | ^~~~~~~~~~~~~~~~~~~~ main.c:25:7: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 25 | fscanf(fin,"%d",&nr1); | ^~~~~~~~~~~~~~~~~~~~~ main.c:26:7: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 26 | fscanf(fin,"%d",&nr2); | ^~~~~~~~~~~~~~~~~~~~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 245 kb a) rezultat incorect; b) lipsa 0
2 2 ms 245 kb a) rezultat incorect; b) lipsa 0
3 1 ms 507 kb a) rezultat incorect; b) lipsa 0
4 1009 ms 270 kb Time limit exceeded 0
5 1 ms 245 kb a) OK; b) lipsa 7
6 2 ms 245 kb a) OK; b) lipsa 7
7 1009 ms 249 kb Time limit exceeded 0
8 1009 ms 270 kb Time limit exceeded 0
9 1 ms 245 kb a) OK; b) lipsa 7
10 1009 ms 249 kb Time limit exceeded 0
Punctaj total 21