Borderou de evaluare (job #2160693)

Utilizator teoionescuIonescu Teodor teoionescu Data 11 martie 2018 13:43:09
Problema Smooth2 Status done
Runda Algoritmiada 2018 Runda PreOJI Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int cst(int, int)’: user.cpp:20:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(st < s.size()) { ^ user.cpp:21:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int j=0; j < k && st+j < s.size(); j++) { ^ user.cpp:22:22: warning: array subscript has type ‘char’ [-Wchar-subscripts] f[s[st+j]] ++; ^ user.cpp:23:24: warning: array subscript has type ‘char’ [-Wchar-subscripts] nel[s[st+j]] += (f[s[st+j]] > 1); ^ user.cpp:23:39: warning: array subscript has type ‘char’ [-Wchar-subscripts] nel[s[st+j]] += (f[s[st+j]] > 1); ^ user.cpp:25:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int j=0; j < k && st+j < s.size(); j++) { ^ user.cpp:26:22: warning: array subscript has type ‘char’ [-Wchar-subscripts] f[s[st+j]] --; ^ user.cpp:32:17: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(lua[z] > 0) { ^ user.cpp:33:32: warning: array subscript has type ‘char’ [-Wchar-subscripts] ch.push_back({lua[z], 0}); ^ user.cpp:34:32: warning: array subscript has type ‘char’ [-Wchar-subscripts] ch.push_back({nel[z], 1}); ^ user.cpp:36:12: warning: array subscript has type ‘char’ [-Wchar-subscripts] f[z] = nel[z] = 0; ^ user.cpp:36:21: warning: array subscript has type ‘char’ [-Wchar-subscripts] f[z] = nel[z] = 0; ^ user.cpp:40:30: error: ‘sort’ was not declared in this scope sort(ch.begin(), ch.end()); ^ user.cpp: In function ‘int main()’: user.cpp:60:14: warning: array subscript has type ‘char’ [-Wchar-subscripts] lua[c]++; ^ user.cpp:61:22: warning: array subscript has type ‘char’ [-Wchar-subscripts] lit += (lua[c]==1); ^

Ceva nu functioneaza?