Borderou de evaluare (job #1250331)

Utilizator CiurezAndreiCiurez Marius-Andrei CiurezAndrei Data 27 octombrie 2014 23:58:29
Problema Bool Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:12:1: error: expected initializer before ‘int’ int grad_3(); ^ user.cpp: In function ‘int grad_4()’: user.cpp:16:20: error: ‘grad_3’ was not declared in this scope int r = grad_3(); ^ user.cpp:17:17: warning: comparison with string literal results in unspecified behaviour [-Waddress] if( s[i] == "NOT"){ ^ user.cpp:18:8: error: ‘val’ was not declared in this scope if(val[s[i + 1]]) ^ user.cpp: In function ‘int grad_3()’: user.cpp:28:16: warning: comparison with string literal results in unspecified behaviour [-Waddress] if(s[i] == "OR" || s[i] == "AND") ^ user.cpp:28:32: warning: comparison with string literal results in unspecified behaviour [-Waddress] if(s[i] == "OR" || s[i] == "AND") ^ user.cpp:29:20: warning: comparison with string literal results in unspecified behaviour [-Waddress] if(s[i] == "OR"){ ^ user.cpp:30:16: error: ‘val’ was not declared in this scope if(val[s[i - 1] == 1 %%) ^ user.cpp:30:35: error: expected primary-expression before ‘%’ token if(val[s[i - 1] == 1 %%) ^ user.cpp:30:36: error: expected primary-expression before ‘)’ token if(val[s[i - 1] == 1 %%) ^ user.cpp:30:36: error: expected ‘]’ before ‘)’ token user.cpp:32:13: error: expected ‘;’ before ‘}’ token } ^ user.cpp:28:7: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses] if(s[i] == "OR" || s[i] == "AND") ^ user.cpp:27:9: warning: unused variable ‘r’ [-Wunused-variable] int r = grad_2(); ^ user.cpp:38:1: warning: no return statement in function returning non-void [-Wreturn-type] } ^

Ceva nu functioneaza?