Pagini recente » Borderou de evaluare (job #623811) | Borderou de evaluare (job #1206521) | Borderou de evaluare (job #3152128) | Borderou de evaluare (job #1872505) | Borderou de evaluare (job #2605503)
Borderou de evaluare (job #2605503)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:17:11: warning: operation on 'j' may be undefined [-Wsequence-point]
v[++j] = v[j-1] + j-1;
^~~
main.cpp:17:11: warning: operation on 'j' may be undefined [-Wsequence-point]
main.cpp:6:28: warning: unused variable 'maxi' [-Wunused-variable]
int n, k, i, j = 1, x, maxi, minj, temp,
^~~~
main.cpp:6:34: warning: unused variable 'minj' [-Wunused-variable]
int n, k, i, j = 1, x, maxi, minj, temp,
^~~~
main.cpp:6:40: warning: unused variable 'temp' [-Wunused-variable]
int n, k, i, j = 1, x, maxi, minj, temp,
^~~~
main.cpp:8:39: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("farfurii.in", "r", stdin);
^
main.cpp:9:41: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("farfurii.out", "w", stdout);
^
main.cpp:10:26: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &n, &k);
^
main.cpp:28:28: warning: assuming signed overflow does not occur when assuming that (X + c) >= X is always true [-Wstrict-overflow]
for(j = i+1; j <= n; ++j)
~~^~~~
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 3ms | 917kb | OK! | 10 |
2 | 3ms | 917kb | OK! | 10 |
3 | 3ms | 917kb | OK! | 10 |
4 | 4ms | 917kb | OK! | 10 |
5 | 153ms | 917kb | Time limit exceeded | 0 |
6 | 152ms | 917kb | Time limit exceeded | 0 |
7 | 153ms | 917kb | Time limit exceeded | 0 |
8 | 152ms | 1048kb | Time limit exceeded | 0 |
9 | 152ms | 1179kb | Time limit exceeded | 0 |
10 | 151ms | 1310kb | Time limit exceeded | 0 |
Punctaj total | 40 |