Borderou de evaluare (job #1451685)

Utilizator theprdvtheprdv theprdv Data 18 iunie 2015 07:18:15
Problema Zoo Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 60

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:75:23: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 3 has type ‘int*’ [-Wformat=] fscanf(fin, "%ld", &N); ^ user.cpp:78:42: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 3 has type ‘int*’ [-Wformat=] fscanf(fin, "%ld %ld", &P[i].x, &P[i].y); ^ user.cpp:78:42: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 4 has type ‘int*’ [-Wformat=] user.cpp:85:23: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 3 has type ‘int*’ [-Wformat=] fscanf(fin, "%ld", &M); ^ user.cpp:87:52: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 3 has type ‘int*’ [-Wformat=] fscanf(fin, "%ld %ld %ld %ld", &x1, &y1, &x2, &y2); ^ user.cpp:87:52: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 4 has type ‘int*’ [-Wformat=] user.cpp:87:52: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 5 has type ‘int*’ [-Wformat=] user.cpp:87:52: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 6 has type ‘int*’ [-Wformat=] user.cpp:101:29: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘int’ [-Wformat=] fprintf(fout, "%ld\n", sol); ^ user.cpp:75:24: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fin, "%ld", &N); ^ user.cpp:78:43: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fin, "%ld %ld", &P[i].x, &P[i].y); ^ user.cpp:85:24: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fin, "%ld", &M); ^ user.cpp:87:53: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fin, "%ld %ld %ld %ld", &x1, &y1, &x2, &y2); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms312kbOK10
20ms284kbIncorect0
30ms472kbIncorect0
460ms3228kbIncorect0
596ms3280kbIncorect0
6200ms3284kbOK10
7228ms3276kbOK10
8156ms3280kbOK10
9224ms3276kbOK10
10224ms3272kbOK10
Punctaj total60

Ceva nu functioneaza?