Borderou de evaluare (job #2124106)
Utilizator | Data | 6 februarie 2018 21:38:42 | |
---|---|---|---|
Problema | Ferma3 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:10:21: error: ‘int index [402][402]’ redeclared as different kind of symbol
int index[MAXN][MAXN];
^
In file included from /usr/include/c++/5/cstring:42:0,
from /usr/include/x86_64-linux-gnu/c++/5/32/bits/stdc++.h:48,
from user.cpp:1:
/usr/include/string.h:477:1: note: previous declaration ‘const char* index(const char*, int)’
index (const char *__s, int __c) __THROW
^
user.cpp: In function ‘int solveSecond(int, int, char (*)[402], int (*)[402], int*)’:
user.cpp:76:49: warning: array subscript has type ‘char’ [-Wchar-subscripts]
currentSize[source[nextX][nextY]] += sizeOf[target[nextX][nextY]];
^
user.cpp:77:87: warning: array subscript has type ‘char’ [-Wchar-subscripts]
currentMaximum = max (currentMaximum, currentSize[source[nextX][nextY]]);
^
user.cpp:84:49: warning: array subscript has type ‘char’ [-Wchar-subscripts]
currentSize[source[nextX][nextY]] = 0;
^
user.cpp: In function ‘int main()’:
user.cpp:104:55: error: cannot resolve overloaded function ‘index’ based on conversion to type ‘int (*)[402]’
fout << solveFirst(n, m, matrix, index, sizeOf);
^
user.cpp:108:56: error: cannot resolve overloaded function ‘index’ based on conversion to type ‘int (*)[402]’
fout << solveSecond(n, m, matrix, index, sizeOf);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !