Pagini recente » Borderou de evaluare (job #1790815) | Borderou de evaluare (job #149009) | Borderou de evaluare (job #872044) | Borderou de evaluare (job #1104019) | Borderou de evaluare (job #1296993)
Borderou de evaluare (job #1296993)
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 | 260kb | Incorect | 0 |
2 | 0ms | 296kb | Incorect | 0 |
3 | 664ms | 540kb | Incorect | 0 |
4 | 636ms | 296kb | Incorect | 0 |
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 | 0 |