Pagini recente » Borderou de evaluare (job #2038704) | Borderou de evaluare (job #1808768) | Borderou de evaluare (job #1023844) | Borderou de evaluare (job #2634281) | Borderou de evaluare (job #1296996)
Borderou de evaluare (job #1296996)
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 |
1 | 0ms | 264kb | OK | 10 |
2 | 0ms | 296kb | OK | 10 |
3 | 676ms | 536kb | OK | 10 |
4 | 644ms | 296kb | OK | 10 |
5 | 16ms | Depăşit | Memory limit exceeded. | 0 |
6 | 12ms | Depăşit | Memory limit exceeded. | 0 |
7 | 16ms | Depăşit | Memory limit exceeded. | 0 |
8 | 16ms | Depăşit | Memory limit exceeded. | 0 |
9 | 16ms | Depăşit | Memory limit exceeded. | 0 |
10 | 16ms | Depăşit | Memory limit exceeded. | 0 |
Punctaj total | 40 |