Borderou de evaluare (job #1946619)

Utilizator FrequeAlex Iordachescu Freque Data 30 martie 2017 11:47:30
Problema Expresie3 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘std::string initial(std::string)’: user.cpp:24:14: warning: array subscript has type ‘char’ [-Wchar-subscripts] apare[s[i]] = 0; ^ user.cpp: In function ‘std::string transform(std::string)’: user.cpp:50:10: warning: array subscript has type ‘char’ [-Wchar-subscripts] ct[lit] += semn*semnnum*numar; ^ user.cpp:56:10: warning: array subscript has type ‘char’ [-Wchar-subscripts] ct[lit] += semn*semnnum*numar; ^ user.cpp:62:10: warning: array subscript has type ‘char’ [-Wchar-subscripts] ct[lit] += semn*semnnum*numar; ^ user.cpp:69:8: warning: array subscript has type ‘char’ [-Wchar-subscripts] ct[lit] += semn*semnnum*numar; ^ user.cpp:71:13: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (ct[lit]!=0) ^ user.cpp:74:14: warning: array subscript has type ‘char’ [-Wchar-subscripts] ltoa(ct[lit],buf,10); ^ user.cpp:74:22: error: ‘ltoa’ was not declared in this scope ltoa(ct[lit],buf,10); ^ user.cpp:75:13: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (ct[lit] >= 0) ^ user.cpp:34:8: warning: unused variable ‘j’ [-Wunused-variable] int i,j,len,semn=1,numar=0,semnnum; ^ user.cpp: In function ‘int main()’: user.cpp:121:13: warning: array subscript has type ‘char’ [-Wchar-subscripts] apare[lit] = semn*numar; ^ user.cpp:132:11: warning: array subscript has type ‘char’ [-Wchar-subscripts] apare[lit] = semn*numar; ^ user.cpp:135:16: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (apare[lit]>-1000000000) ^ user.cpp:137:35: warning: array subscript has type ‘char’ [-Wchar-subscripts] cout << lit << ' ' << apare[lit] << endl; ^ user.cpp:138:32: warning: array subscript has type ‘char’ [-Wchar-subscripts] g << lit << ' ' << apare[lit] << endl; ^

Ceva nu functioneaza?