Borderou de evaluare (job #2116903)

Utilizator andreicoman299Coman Andrei andreicoman299 Data 28 ianuarie 2018 12:11:45
Problema Elmer Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 75

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:16:67: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] for(int i = 1; i <= n; i++) fscanf(fi,"%d%d", &v[i].x, &v[i].y); ^ user.cpp:16:67: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long long int*’ [-Wformat=] user.cpp:18:67: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] for(int i = 1; i <= m; i++) fscanf(fi,"%d%d", &w[i].x, &w[i].y); ^ user.cpp:18:67: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long long int*’ [-Wformat=] user.cpp:15:24: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fi,"%d", &n); ^ user.cpp:16:68: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] for(int i = 1; i <= n; i++) fscanf(fi,"%d%d", &v[i].x, &v[i].y); ^ user.cpp:17:24: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fi,"%d", &m); ^ user.cpp:18:68: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] for(int i = 1; i <= m; i++) fscanf(fi,"%d%d", &w[i].x, &w[i].y); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
128ms23928kbIncorect0
228ms23924kbOK5
328ms23928kbIncorect0
428ms23936kbIncorect0
528ms23932kbOK5
628ms23932kbOK5
728ms23928kbOK5
828ms23932kbOK5
940ms23936kbOK5
1044ms23932kbOK5
1132ms23932kbOK5
1240ms23940kbOK5
1340ms23940kbOK5
1440ms23948kbOK5
1548ms23948kbIncorect0
1632ms23944kbIncorect0
1740ms23940kbOK5
1888ms23944kbOK5
1972ms23948kbOK5
20136ms23948kbOK5
Punctaj total75

Ceva nu functioneaza?