Borderou de evaluare (job #2211505)

Utilizator cc4infinityCojocaru Catalin cc4infinity Data 10 iunie 2018 18:08:10
Problema Bool Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void eval()’: user.cpp:21:26: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (1-t[c]==0) ns.push('a'); else ns.push('b'); ^ user.cpp:31:28: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (t[c]==0 || t[c1]==0) ns.push('a'); else ns.push('b'); ^ user.cpp:31:40: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (t[c]==0 || t[c1]==0) ns.push('a'); else ns.push('b'); ^ user.cpp:35:28: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (t[c]==1 || t[c1]==1) ns.push('b'); else ns.push('a'); ^ user.cpp:35:40: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (t[c]==1 || t[c1]==1) ns.push('b'); else ns.push('a'); ^ user.cpp:39:21: warning: array subscript has type ‘char’ [-Wchar-subscripts] fout<<t[ns.top()]; ^ user.cpp: In function ‘void prior(char)’: user.cpp:44:24: error: return-statement with a value, in function returning 'void' [-fpermissive] if (c=='-') return 3; ^ user.cpp:45:24: error: return-statement with a value, in function returning 'void' [-fpermissive] if (c=='*') return 2; ^ user.cpp:46:24: error: return-statement with a value, in function returning 'void' [-fpermissive] if (c=='/') return 1; ^ user.cpp:47:13: error: return-statement with a value, in function returning 'void' [-fpermissive] return -1; ^ user.cpp: In function ‘int main()’: user.cpp:62:35: error: invalid operands of types ‘void’ and ‘int’ to binary ‘operator>=’ while (prior(ss.top())>=2) ~~~~~~~~~~~~~~~^~~ user.cpp:72:35: error: invalid operands of types ‘void’ and ‘int’ to binary ‘operator>=’ while (prior(ss.top())>=3) ~~~~~~~~~~~~~~~^~~ user.cpp:82:35: error: invalid operands of types ‘void’ and ‘int’ to binary ‘operator>=’ while (prior(ss.top())>=1) ~~~~~~~~~~~~~~~^~~ user.cpp:112:12: warning: array subscript has type ‘char’ [-Wchar-subscripts] t[c]=1-t[c]; ^ user.cpp:112:19: warning: array subscript has type ‘char’ [-Wchar-subscripts] t[c]=1-t[c]; ^

Ceva nu functioneaza?