Borderou de evaluare (job #1266905)

Utilizator fluture.godlikeGafton Mihnea Alexandru fluture.godlike Data 19 noiembrie 2014 11:45:27
Problema Procesor Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 20

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:21:22: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] fscanf(fin, "%d", &n); ^ user.cpp:23:65: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] for(int i =0; i< n; i++) {fscanf(fin, "%d %d", &v[i].t, &v[i].p);if(v[i].t > max) max = v[i].t;} ^ user.cpp:23:65: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long long int*’ [-Wformat=] user.cpp:35:25: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long int’ [-Wformat=] fprintf(fout, "%d", sum); ^ user.cpp:21:23: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fin, "%d", &n); ^ user.cpp:23:66: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] for(int i =0; i< n; i++) {fscanf(fin, "%d %d", &v[i].t, &v[i].p);if(v[i].t > max) max = v[i].t;} ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms1132kbOK10
20ms252kbOK10
30ms1200kbIncorect0
40ms1232kbIncorect0
50ms1256kbIncorect0
616ms1392kbIncorect0
760ms1708kbIncorect0
8524ms2016kbIncorect0
9Depăşit2476kbTime limit exceeded.0
10Depăşit2796kbTime limit exceeded.0
Punctaj total20

Ceva nu functioneaza?