Borderou de evaluare (job #1372458)

Utilizator dyanagGrigore Diana dyanag Data 4 martie 2015 13:36:14
Problema Ksecv3 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:13:29: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] fscanf(f, "%d%d", &n, &k); ^ user.cpp:13:29: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long long int*’ [-Wformat=] user.cpp:14:29: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] fscanf(h, "%d%d", &n, &k); ^ user.cpp:14:29: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long long int*’ [-Wformat=] user.cpp:15:29: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] fscanf(j, "%d%d", &n, &k); ^ user.cpp:15:29: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long long int*’ [-Wformat=] user.cpp:17:28: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] fscanf(f, "%d", &nr); ^ user.cpp:26:27: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] fscanf(h, "%d", &nr); ^ user.cpp:37:28: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] fscanf(j, "%d", &nr); ^ user.cpp:13:30: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f, "%d%d", &n, &k); ^ user.cpp:14:30: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(h, "%d%d", &n, &k); ^ user.cpp:15:30: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(j, "%d%d", &n, &k); ^ user.cpp:17:29: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f, "%d", &nr); ^ user.cpp:26:28: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(h, "%d", &nr); ^ user.cpp:37:29: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(j, "%d", &nr); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms264kbOK10
20ms264kbOK10
30ms264kbOK10
40ms256kbOK10
54ms264kbOK10
64ms268kbOK10
756ms268kbOK10
8124ms264kbOK10
952ms268kbOK10
1016ms256kbOK10
Punctaj total100

Ceva nu functioneaza?