Borderou de evaluare (job #600157)

Utilizator avatar VladSS Sirbu Vlad VladSS IP ascuns
Problemă Char (clasa a 7-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 10 iun. 2021 22:13:39 Scor 100

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:20:14: warning: array subscript has type 'char' [-Wchar-subscripts] 20 | f[t[i]]=1; | ~~~^ main.cpp:33:17: warning: array subscript has type 'char' [-Wchar-subscripts] 33 | if(f[t[i]]>maxi) | ~~~^ main.cpp:35:23: warning: array subscript has type 'char' [-Wchar-subscripts] 35 | maxi=f[t[i]]; | ~~~^ main.cpp:38:22: warning: array subscript has type 'char' [-Wchar-subscripts] 38 | else if(f[t[i]]==maxi) | ~~~^ main.cpp:40:39: warning: array subscript has type 'char' [-Wchar-subscripts] 40 | if ( c[j = i + 100 + 1 + f[t[i]]] < (m = i + 100 + 1 - f[t[i]]) ) | ~~~^ main.cpp:40:69: warning: array subscript has type 'char' [-Wchar-subscripts] 40 | if ( c[j = i + 100 + 1 + f[t[i]]] < (m = i + 100 + 1 - f[t[i]]) ) | ~~~^ main.cpp:45:3: warning: this 'for' clause does not guard... [-Wmisleading-indentation] 45 | for ( i = 100 + 1; i < n + 2 * 100 + 1; i++ ) | ^~~ main.cpp:50:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' 50 | out<<nmax<<'\n'<<m; | ^~~ main.cpp:50:16: warning: 'nmax' may be used uninitialized in this function [-Wmaybe-uninitialized] 50 | out<<nmax<<'\n'<<m; | ^~~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 393 kb OK 10
2 1 ms 393 kb OK 10
3 1 ms 262 kb OK 10
4 1 ms 393 kb OK 10
5 1 ms 262 kb OK 10
6 1 ms 389 kb OK 10
7 1 ms 262 kb OK 10
8 1 ms 389 kb OK 10
9 1 ms 389 kb OK 10
10 1 ms 389 kb OK 10
Punctaj total 100