Borderou de evaluare (job #638801)

Utilizator avatar VladPislaru Pislaru Vlad Rares VladPislaru IP ascuns
Problemă Petrecere Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 5 mar. 2022 23:03:56 Scor 80

Raport evaluator

Compilare: main.cpp: In function 'int solve()': main.cpp:34:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 34 | if (pos = 0) return 0; | ~~~~^~~ main.cpp:16:7: warning: unused variable 'poz' [-Wunused-variable] 16 | int poz = N; | ^~~ main.cpp:35:19: warning: array subscript -1 is below array bounds of 'int [100005]' [-Warray-bounds] 35 | fr[pos - 1] += x; | ~~~~~~~~~~~~^~~~ main.cpp:13:5: note: while referencing 'fr' 13 | int fr[MaxN]; | ^~ main.cpp:35:19: warning: array subscript -1 is below array bounds of 'int [100005]' [-Warray-bounds] 35 | fr[pos - 1] += x; | ~~~~~~~~~~~~^~~~ main.cpp:13:5: note: while referencing 'fr' 13 | int fr[MaxN]; | ^~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 118 kb Incorect 0
2 1 ms 114 kb OK 10
3 7 ms 245 kb OK 10
4 1 ms 233 kb OK 10
5 18 ms 335 kb OK 10
6 119 ms 643 kb OK 10
7 120 ms 634 kb OK 10
8 167 ms 765 kb Incorect 0
9 164 ms 770 kb OK 10
10 214 ms 827 kb OK 10
Punctaj total 80