Borderou de evaluare (job #1858108)
Utilizator | Data | 27 ianuarie 2017 00:45:44 | |
---|---|---|---|
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?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !