Borderou de evaluare (job #2236672)

Utilizator AndreiVisoiuAndrei Visoiu AndreiVisoiu Data 30 august 2018 11:35:49
Problema Elimin Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 70

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:43:44: warning: format ‘%hi’ expects argument of type ‘short int*’, but argument 2 has type ‘int*’ [-Wformat=] scanf("%hi %hi %hi %hi", &m, &n, &r, &c); ^ user.cpp:43:44: warning: format ‘%hi’ expects argument of type ‘short int*’, but argument 3 has type ‘int*’ [-Wformat=] user.cpp:43:44: warning: format ‘%hi’ expects argument of type ‘short int*’, but argument 4 has type ‘int*’ [-Wformat=] user.cpp:43:44: warning: format ‘%hi’ expects argument of type ‘short int*’, but argument 5 has type ‘int*’ [-Wformat=] user.cpp:48:38: warning: format ‘%hi’ expects argument of type ‘short int*’, but argument 2 has type ‘int*’ [-Wformat=] scanf("%hi", &a[j][i]); ^ user.cpp:53:38: warning: format ‘%hi’ expects argument of type ‘short int*’, but argument 2 has type ‘int*’ [-Wformat=] scanf("%hi", &a[i][j]); ^ user.cpp:41:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("elimin.in", "r", stdin); ^ user.cpp:42:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("elimin.out", "w", stdout); ^ user.cpp:43:45: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%hi %hi %hi %hi", &m, &n, &r, &c); ^ user.cpp:48:39: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%hi", &a[j][i]); ^ user.cpp:53:39: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%hi", &a[i][j]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms856kbOK10
20ms756kbOK10
30ms860kbOK10
40ms932kbOK10
50ms812kbOK10
64ms988kbOK10
752ms1132kbIncorect0
816ms1232kbIncorect0
980ms1516kbOK10
10100ms1716kbIncorect0
Punctaj total70

Ceva nu functioneaza?