Borderou de evaluare (job #1552206)
Utilizator | Data | 17 decembrie 2015 14:00:19 | |
---|---|---|---|
Problema | Jocul Flip | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:4:42: error: ‘int index’ redeclared as different kind of symbol
int N, M, A[20][20], B[20][20], i, j, k, index, sol = 0, tempSum, maxSol = - (1<<30);
^
In file included from /usr/include/c++/4.8/cstring:42:0,
from user.cpp:2:
/usr/include/string.h:482:1: error: previous declaration of ‘const char* index(const char*, int)’
index (__const char *__s, int __c) __THROW
^
user.cpp: In function ‘int main()’:
user.cpp:57:8: error: overloaded function with no contextual type information
index = 0;
^
user.cpp:62:9: error: overloaded function with no contextual type information
index = 0;
^
user.cpp:65:11: warning: suggest parentheses around comparison in operand of ‘&’ [-Wparentheses]
if (k2 & 1 == 1)
^
user.cpp:67:15: error: cannot resolve overloaded function ‘index’ based on conversion to type ‘int’
flip(index);
^
user.cpp:69:9: error: no post-increment operator for type
index++;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !