Borderou de evaluare (job #1896747)

Utilizator TherevengerkingSurani Adrian Therevengerking Data 28 februarie 2017 21:15:07
Problema Logic Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 10

Raport evaluator

Compilare: user.cpp: In function ‘bool get_or(std::string)’: user.cpp:52:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(i<s.size() && s[i]=='|') ^ user.cpp: In function ‘bool get_xor(std::string)’: user.cpp:62:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(i<s.size() && s[i]=='^') ^ user.cpp: In function ‘bool eval(std::string)’: user.cpp:72:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(i<s.size() && s[i]=='&') ^ user.cpp: In function ‘int main()’: user.cpp:88:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0;i<s1.size();++i) ^ user.cpp:90:45: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(isalpha(s1[i]) && !fol1[s1[i]]) ^ user.cpp:94:27: warning: array subscript has type ‘char’ [-Wchar-subscripts] fol1[s1[i]]=1; ^ user.cpp:97:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0;i<s2.size();++i){ ^ user.cpp:98:45: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(isalpha(s2[i]) && !fol2[s2[i]] && !fol1[s2[i]]) ^ user.cpp:98:61: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(isalpha(s2[i]) && !fol2[s2[i]] && !fol1[s2[i]]) ^ user.cpp:102:27: warning: array subscript has type ‘char’ [-Wchar-subscripts] fol2[s2[i]]=1; ^ user.cpp:104:50: warning: array subscript has type ‘char’ [-Wchar-subscripts] else if(isalpha(s2[i]) && !fol2[s2[i]]) ^ user.cpp:105:31: warning: array subscript has type ‘char’ [-Wchar-subscripts] {cnt2++;fol2[s2[i]]=1;} ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms432kbOK10
28ms432kbIncorect0
30ms436kbIncorect0
412ms448kbIncorect0
5Depăşit416kbTime limit exceeded.0
632ms452kbIncorect0
724ms436kbIncorect0
80ms432kbIncorect0
90ms440kbIncorect0
1040ms448kbIncorect0
Punctaj total10

Ceva nu functioneaza?