Borderou de evaluare (job #1858109)

Utilizator birotxNedelcescu Radu Costin birotx Data 27 ianuarie 2017 00:46:40
Problema Jocul Flip Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:18:10: error: ISO C++ forbids declaration of ‘flip’ with no type [-fpermissive] flip(){ ^ user.cpp:21:10: error: ISO C++ forbids declaration of ‘read’ with no type [-fpermissive] read(){ ^ user.cpp: In member function ‘int flipClass::flip()’: user.cpp:20:5: warning: no return statement in function returning non-void [-Wreturn-type] } ^ user.cpp: In member function ‘int flipClass::read()’: user.cpp:32:5: warning: no return statement in function returning non-void [-Wreturn-type] } ^ user.cpp: In member function ‘int flipClass::do_p()’: user.cpp:48:76: warning: suggest parentheses around ‘+’ inside ‘<<’ [-Wparentheses] a_total = a_total + ((((perm & (1<<i))>>i) ^ ((perm & (1<<m+j))>>m+j)) ? (-1) * matrix[i][j] : matrix[i][j]); ^ user.cpp:48:83: warning: suggest parentheses around ‘+’ inside ‘>>’ [-Wparentheses] a_total = a_total + ((((perm & (1<<i))>>i) ^ ((perm & (1<<m+j))>>m+j)) ? (-1) * matrix[i][j] : matrix[i][j]); ^ user.cpp: In function ‘int main()’: user.cpp:75:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(flip.do_p()<mp); ^

Ceva nu functioneaza?