Borderou de evaluare (job #1296996)

Utilizator japjappedulapPotra Vlad japjappedulap Data 21 decembrie 2014 17:04:06
Problema Sarac Sau Rege Status done
Runda Happy Birthday Infoarena 2014 Compilator cpp | Vezi sursa
Scor 40

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:15:31: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘short int*’ [-Wformat=] scanf("%d", &RMQ[0][i]); ^ user.cpp:18:58: warning: suggest parentheses around ‘-’ inside ‘<<’ [-Wparentheses] RMQ[i][j] = max(RMQ[i-1][j], RMQ[i-1][j+(1<<i-1)]); ^ user.cpp:10:43: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("saracsaurege.in", "r", stdin); ^ user.cpp:11:45: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("saracsaurege.out", "w", stdout); ^ user.cpp:13:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &N, &M); ^ user.cpp:15:32: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &RMQ[0][i]); ^ user.cpp:21:30: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &x, &y); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms264kbOK10
20ms296kbOK10
3676ms536kbOK10
4644ms296kbOK10
516msDepăşitMemory limit exceeded.0
612msDepăşitMemory limit exceeded.0
716msDepăşitMemory limit exceeded.0
816msDepăşitMemory limit exceeded.0
916msDepăşitMemory limit exceeded.0
1016msDepăşitMemory limit exceeded.0
Punctaj total40

Ceva nu functioneaza?