Borderou de evaluare (job #1199895)

Utilizator gabriel.badeaGabriel Badea gabriel.badea Data 21 iunie 2014 01:25:41
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:88:9: warning: unused variable ‘p’ [-Wunused-variable] int p = tragere[t].x-i+1; ^ 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
10msDepăşitMemory limit exceeded.0
20msDepăşitMemory limit exceeded.0
30msDepăşitMemory limit exceeded.0
40ms636kbIncorect0
50ms636kbIncorect0
60ms640kbIncorect0
70ms636kbIncorect0
80ms640kbIncorect0
90msDepăşitMemory limit exceeded.0
100ms640kbIncorect0
110ms640kbIncorect0
120msDepăşitMemory limit exceeded.0
130ms636kbIncorect0
140ms636kbIncorect0
150ms640kbIncorect0
160msDepăşitMemory limit exceeded.0
170ms636kbIncorect0
180ms636kbIncorect0
190ms640kbIncorect0
200msDepăşitMemory limit exceeded.0
Punctaj total0

Ceva nu functioneaza?