Borderou de evaluare (job #743324)

Utilizator avatar apoputoaievlad Apoputoaie Vlad Cristian apoputoaievlad IP ascuns
Problemă Litere3 Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 8 nov. 2023 19:11:58 Scor 100

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:15:18: warning: array subscript has type 'char' [-Wchar-subscripts] 15 | fr[ch[i-1]]++; | ~~~~~~^ main.cpp:29:20: warning: array subscript has type 'char' [-Wchar-subscripts] 29 | fr[ch[j]]--; | ~~~~^ In file included from /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/algorithm:60, from /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/i686-pc-linux-gnu/bits/stdc++.h:51, from main.cpp:1: In function 'constexpr const _Tp& std::max(const _Tp&, const _Tp&) [with _Tp = int]', inlined from 'int main()' at main.cpp:24:17: /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/bits/stl_algobase.h:262:7: warning: 'lmax' may be used uninitialized [-Wmaybe-uninitialized] 262 | if (__a < __b) | ^~ main.cpp: In function 'int main()': main.cpp:9:27: note: 'lmax' was declared here 9 | int n,k,i,cnt=0,j=0,h,lmax,l=0,fr[200]={0}; | ^~~~
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 1 ms 249 kb OK 10
6 1 ms 245 kb OK 10
7 1 ms 249 kb OK 10
8 1 ms 249 kb OK 10
9 1 ms 245 kb OK 10
10 1 ms 245 kb OK 10
Punctaj total 100