Borderou de evaluare (job #2694278)
| Utilizator | Data | 8 ianuarie 2021 17:33:26 | |
|---|---|---|---|
| Problema | Critice | Status | done |
| Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
main.cpp:20:21: error: 'int index [1005][1005]' redeclared as different kind of symbol
int index[1005][1005];
^
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 'int main()':
main.cpp:156:16: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
index[x][y] = index[y][x] = i;
^
main.cpp:156:30: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
index[x][y] = index[y][x] = i;
^
main.cpp:190:42: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
rez.push_back(index[i][j]);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
