Borderou de evaluare (job #1921313)

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

Raport evaluator

Compilare: user.cpp: In function ‘int evaluare(char*)’: user.cpp:72:30: warning: array subscript has type ‘char’ [-Wchar-subscripts] int nr = (int) cod[s[i]]; ^ user.cpp:62:8: warning: variable ‘top’ set but not used [-Wunused-but-set-variable] char top; ^ user.cpp:63:7: warning: variable ‘x’ set but not used [-Wunused-but-set-variable] int x; ^ user.cpp: In function ‘int main()’: user.cpp:116:17: warning: array subscript has type ‘char’ [-Wchar-subscripts] f1[s1[j]] = true; ^ user.cpp:122:17: warning: array subscript has type ‘char’ [-Wchar-subscripts] f2[s2[j]] = true; ^ user.cpp:129:16: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (f1[ch] != f2[ch]) { ^ user.cpp:129:26: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (f1[ch] != f2[ch]) { ^ user.cpp:137:15: warning: array subscript has type ‘char’ [-Wchar-subscripts] cod[ch] = f1[ch] = f2[ch] = false; ^ user.cpp:137:24: warning: array subscript has type ‘char’ [-Wchar-subscripts] cod[ch] = f1[ch] = f2[ch] = false; ^ user.cpp:137:33: warning: array subscript has type ‘char’ [-Wchar-subscripts] cod[ch] = f1[ch] = f2[ch] = false; ^ user.cpp:149:42: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (isalpha (s1[j]) && !cod[s1[j]]) ^ user.cpp:150:20: warning: array subscript has type ‘char’ [-Wchar-subscripts] cod[s1[j]] = v[++k]; ^ user.cpp:165:13: warning: array subscript has type ‘char’ [-Wchar-subscripts] cod[ch] = f1[ch] = f2[ch] = false; ^ user.cpp:165:22: warning: array subscript has type ‘char’ [-Wchar-subscripts] cod[ch] = f1[ch] = f2[ch] = false; ^ user.cpp:165:31: warning: array subscript has type ‘char’ [-Wchar-subscripts] cod[ch] = f1[ch] = f2[ch] = false; ^ user.cpp: In function ‘int priority(char)’: user.cpp:19:1: warning: control reaches end of non-void function [-Wreturn-type] }
Test Timp executie Memorie folosita Mesaj Punctaj/test
1Depăşit268kbTime limit exceeded.0
24ms380kbKilled by signal 6(SIGABRT).0
3Depăşit268kbTime limit exceeded.0
44ms280kbIncorect0
520ms280kbOK10
60ms264kbKilled by signal 11(SIGSEGV).0
70ms384kbKilled by signal 6(SIGABRT).0
80ms276kbIncorect0
90ms284kbIncorect0
100ms384kbKilled by signal 6(SIGABRT).0
Punctaj total10

Ceva nu functioneaza?