Borderou de evaluare (job #1576382)

Utilizator SirStevensIonut Morosan SirStevens Data 22 ianuarie 2016 12:47:28
Problema Bool Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:11:9: error: conflicting declaration ‘char* p’ char k,*p=s; ^ user.cpp:8:6: error: ‘p’ has a previous declaration as ‘bool p’ bool p; ^ user.cpp: In function ‘void Adunare()’: user.cpp:22:22: error: void value not ignored as it ought to be bool x=Inmultire(); ^ user.cpp:23:12: error: invalid type argument of unary ‘*’ (have ‘bool’) while(*p == '|' ) ^ user.cpp:26:10: error: invalid operands of types ‘bool’ and ‘void’ to binary ‘operator|’ x|=Inmultire(); ^ user.cpp:26:10: error: in evaluation of ‘operator|=(bool, void)’ user.cpp: In function ‘void Inmultire()’: user.cpp:33:20: error: void value not ignored as it ought to be bool x=Valuare(); ^ user.cpp:34:12: error: invalid type argument of unary ‘*’ (have ‘bool’) while(*p == '&') ^ user.cpp:37:9: error: expected ‘;’ before ‘x’ x&=Valuare(); ^ user.cpp:33:10: warning: unused variable ‘x’ [-Wunused-variable] bool x=Valuare(); ^ user.cpp: In function ‘void Valuare()’: user.cpp:44:12: error: invalid type argument of unary ‘*’ (have ‘bool’) while(*p == '!') ^ user.cpp:43:10: warning: unused variable ‘x’ [-Wunused-variable] bool x=0; ^ user.cpp: In function ‘int main()’: user.cpp:53:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0 ; i< s.size();i++) ^ user.cpp:71:5: error: ‘x’ was not declared in this scope x['t']=1; ^ user.cpp:73:9: error: ‘i’ was not declared in this scope for(i=1;i<=n;i++) ^ user.cpp:79:12: error: no match for ‘operator<<’ (operand types are ‘std::ofstream {aka std::basic_ofstream<char>}’ and ‘void’) out<<Adunare(); ^

Ceva nu functioneaza?