Borderou de evaluare (job #812807)

Utilizator avatar Tzepu Icriverzi Andrei Tzepu IP ascuns
Problemă Suma4 (clasele 11-12) Compilator cpp-32
Rundă pre OJI cl a 9-a Status evaluat
Dată 6 mar. 2025 10:19:32 Scor 100

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:67:13: warning: unused variable 'minn' [-Wunused-variable] 67 | int minn=100,poz; | ^~~~ main.cpp:67:22: warning: unused variable 'poz' [-Wunused-variable] 67 | int minn=100,poz; | ^~~ main.cpp:18:19: warning: iteration 99 invokes undefined behavior [-Waggressive-loop-optimizations] 18 | randuri[i]=i*i; | ~~~~~~~~~~^~~~ main.cpp:17:20: note: within this loop 17 | for (int i=1; i<=100; i++){ | ~^~~~~ main.cpp:32:14: warning: 'rand' may be used uninitialized [-Wmaybe-uninitialized] 32 | for (int i=sp[rand]; i>sp[rand-1]; i--){ | ^ main.cpp:21:11: note: 'rand' was declared here 21 | int n,rand; | ^~~~ main.cpp:62:28: warning: 'poz' may be used uninitialized [-Wmaybe-uninitialized] 62 | dpoz[j+sp[i-1]]=poz; | ~~~~~~~~~~~~~~~^~~~ main.cpp:38:20: note: 'poz' was declared here 38 | int adun=0,poz; | ^~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 507 kb OK 10
2 1 ms 245 kb OK 10
3 1 ms 245 kb OK 10
4 1 ms 249 kb OK 10
5 9 ms 512 kb OK 10
6 19 ms 765 kb OK 10
7 19 ms 765 kb OK 10
8 19 ms 774 kb OK 10
9 19 ms 1032 kb OK 10
10 1 ms 507 kb OK 10
Punctaj total 100