Pagini recente » Borderou de evaluare (job #1749160) | Borderou de evaluare (job #218467) | Borderou de evaluare (job #2895923) | Borderou de evaluare (job #1007578) | Borderou de evaluare (job #1296999)
Borderou de evaluare (job #1296999)
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 | 256kb | OK | 10 |
2 | 0ms | 300kb | OK | 10 |
3 | 672ms | 544kb | OK | 10 |
4 | 632ms | 296kb | OK | 10 |
5 | 12ms | 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 |