Borderou de evaluare (job #1199888)

Utilizator gabriel.badeaGabriel Badea gabriel.badea Data 21 iunie 2014 00:04:49
Problema Tir Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:24:58: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘short int*’ [-Wformat=] scanf("%d%d%d", &coloanePanou, &coloaneAfis, &nr_trageri); ^ user.cpp:24:58: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘short int*’ [-Wformat=] user.cpp:24:58: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘short int*’ [-Wformat=] user.cpp:27:45: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘short int*’ [-Wformat=] scanf("%d%d", &tragere[i].x, &tragere[i].y); ^ user.cpp:27:45: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘short int*’ [-Wformat=] user.cpp:102:30: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] printf("%d\n", punctaj_maxim); ^ user.cpp:17:31: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("tir.in", "r", stdin); ^ user.cpp:18:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("tir.out", "w", stdout); ^ user.cpp:24:59: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d%d", &coloanePanou, &coloaneAfis, &nr_trageri); ^ user.cpp:27:46: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &tragere[i].x, &tragere[i].y); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms620kbIncorect0
20ms620kbIncorect0
30ms620kbIncorect0
40ms616kbIncorect0
50ms616kbIncorect0
60ms616kbIncorect0
70ms616kbIncorect0
80ms616kbIncorect0
90ms620kbIncorect0
100ms616kbIncorect0
110ms620kbIncorect0
120ms616kbIncorect0
130ms616kbIncorect0
140ms620kbIncorect0
150ms620kbIncorect0
160ms616kbIncorect0
170ms620kbIncorect0
180ms616kbIncorect0
190ms616kbIncorect0
200ms616kbIncorect0
Punctaj total0

Ceva nu functioneaza?