Borderou de evaluare (job #1807159)

Utilizator vladavladaa vlada Data 16 noiembrie 2016 08:51:10
Problema Editor Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:23:24: warning: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wliteral-suffix] {if(stk.top()==')'or stk.top()==']') ^ user.cpp: In function ‘int main()’: user.cpp:15:9: error: ‘ok’ was not declared in this scope ok=1; ^ user.cpp:20:13: error: ‘stk’ was not declared in this scope stk.push(act) ^ user.cpp:21:9: error: expected ‘;’ before ‘}’ token } ^ user.cpp:22:13: error: ‘stk’ was not declared in this scope if(!stk.empty()) ^ user.cpp:29:14: error: ‘stk2’ was not declared in this scope stk2.push(stk.top()); ^ user.cpp:32:22: error: ‘stk2’ was not declared in this scope if(stk2.top()=='(' && stk.top()==')') ^ user.cpp:34:22: error: ‘stk2’ was not declared in this scope if(stk2.top()=='[' && stk.top()==']') ^ user.cpp:38:10: error: expected ‘;’ before ‘}’ token } ^ user.cpp:39:13: error: ‘stk2’ was not declared in this scope if(stk2.empty()) ^ user.cpp:42:5: error: expected primary-expression before ‘}’ token } ^ user.cpp:42:5: error: expected ‘;’ before ‘}’ token user.cpp:44:1: error: expected ‘}’ at end of input } ^

Ceva nu functioneaza?