Borderou de evaluare (job #611859)

Utilizator avatar ssss Ismana Andrei Stefan ssss IP ascuns
Problemă Cursa (clasa a 7-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 22 oct. 2021 10:35:28 Scor 10

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:32:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 32 | if(mas[i] < mas[j]) | ^~ main.cpp:34:21: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 34 | swap(mas[i], mas[j]); | ^~~~ main.cpp:37:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation] 37 | for(i = 1; i <= n; i++) | ^~~ main.cpp:39:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' 39 | out << endl; | ^~~ main.cpp:49:17: warning: this 'for' clause does not guard... [-Wmisleading-indentation] 49 | for(k = 1; k <= n; k++) | ^~~ main.cpp:54:21: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' 54 | out << indice << ' ' << mas[i] << ' ' << cnt << ' '; | ^~~ main.cpp:12:15: warning: unused variable 'maxkm' [-Wunused-variable] 12 | int n, i, maxkm, j, k; | ^~~~~ main.cpp:54:38: warning: 'indice' may be used uninitialized in this function [-Wmaybe-uninitialized] 54 | out << indice << ' ' << mas[i] << ' ' << cnt << ' '; | ^~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 131 kb Incorect 0
2 1 ms 131 kb Incorect 0
3 1 ms 131 kb OK 10
4 1 ms 131 kb Incorect 0
5 1 ms 131 kb Incorect 0
6 1 ms 258 kb Incorect 0
7 16 ms 258 kb Incorect 0
8 1 ms 131 kb Incorect 0
9 9 ms 258 kb Incorect 0
10 100 ms 245 kb Time limit exceeded 0
Punctaj total 10