Borderou de evaluare (job #1921346)

Utilizator MoodyFaresFares Mohamad MoodyFares Data 10 martie 2017 12:18:26
Problema Logic Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 20

Raport evaluator

Compilare: user.cpp: In function ‘int evaluare(char*)’: user.cpp:73:24: warning: array subscript has type ‘char’ [-Wchar-subscripts] int nr = cod[s[i]]; ^ user.cpp:63:8: warning: variable ‘top’ set but not used [-Wunused-but-set-variable] char top; ^ user.cpp:64:7: warning: variable ‘x’ set but not used [-Wunused-but-set-variable] int x; ^ user.cpp: In function ‘int main()’: user.cpp:117:17: warning: array subscript has type ‘char’ [-Wchar-subscripts] f1[s1[j]] = true; ^ user.cpp:123:17: warning: array subscript has type ‘char’ [-Wchar-subscripts] f2[s2[j]] = true; ^ user.cpp:130:16: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (f1[ch] != f2[ch]) { ^ user.cpp:130:26: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (f1[ch] != f2[ch]) { ^ user.cpp:138:15: warning: array subscript has type ‘char’ [-Wchar-subscripts] cod[ch] = f1[ch] = f2[ch] = false; ^ user.cpp:138:24: warning: array subscript has type ‘char’ [-Wchar-subscripts] cod[ch] = f1[ch] = f2[ch] = false; ^ user.cpp:138:33: warning: array subscript has type ‘char’ [-Wchar-subscripts] cod[ch] = f1[ch] = f2[ch] = false; ^ user.cpp:150:42: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (isalpha (s1[j]) && !cod[s1[j]]) ^ user.cpp:151:20: warning: array subscript has type ‘char’ [-Wchar-subscripts] cod[s1[j]] = v[++k]; ^ user.cpp:166:13: warning: array subscript has type ‘char’ [-Wchar-subscripts] cod[ch] = f1[ch] = f2[ch] = false; ^ user.cpp:166:22: warning: array subscript has type ‘char’ [-Wchar-subscripts] cod[ch] = f1[ch] = f2[ch] = false; ^ user.cpp:166:31: warning: array subscript has type ‘char’ [-Wchar-subscripts] cod[ch] = f1[ch] = f2[ch] = false; ^ user.cpp:101:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ("logic.in", "r", stdin); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
1Depăşit272kbTime limit exceeded.0
20ms272kbOK10
3Depăşit264kbTime limit exceeded.0
44ms272kbIncorect0
516ms280kbOK10
60ms268kbKilled by signal 11(SIGSEGV).0
7Depăşit276kbTime limit exceeded.0
80ms276kbIncorect0
90ms276kbIncorect0
10Depăşit276kbTime limit exceeded.0
Punctaj total20

Ceva nu functioneaza?