Borderou de evaluare (job #2739489)
Utilizator | Data | 8 aprilie 2021 13:26:08 | |
---|---|---|---|
Problema | Camere | Status | done |
Runda | oni_wellcode_day_8 | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:11:21: error: 'int index [2010][2010]' redeclared as different kind of symbol
int index[NMAX][NMAX];
^
In file included from /usr/include/c++/6/cstring:42:0,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:48,
from main.cpp:1:
/usr/include/string.h:477:1: note: previous declaration 'const char* index(const char*, int)'
index (const char *__s, int __c) __THROW
^~~~~
main.cpp: In function 'void parcurge(int, int, bool)':
main.cpp:14:13: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
if (index[x][y] || x < 1 || x > n || y < 1 || y > m)
^
main.cpp:17:9: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
index[x][y] = grupe;
^
main.cpp: In function 'int main()':
main.cpp:53:28: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
if (gasite.find(index[i][j]) == gasite.end()) {
^
main.cpp:55:20: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
gasite[index[i][j]] = 1;
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !