Borderou de evaluare (job #2605503)

Utilizator matthriscuMatt . matthriscu Data 25 aprilie 2020 12:06:46
Problema Farfurii Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 40

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
13ms917kbOK!10
23ms917kbOK!10
33ms917kbOK!10
44ms917kbOK!10
5153ms917kbTime limit exceeded0
6152ms917kbTime limit exceeded0
7153ms917kbTime limit exceeded0
8152ms1048kbTime limit exceeded0
9152ms1179kbTime limit exceeded0
10151ms1310kbTime limit exceeded0
Punctaj total40

Ceva nu functioneaza?