Borderou de evaluare (job #3285711)
Utilizator | Data | 13 martie 2025 13:33:31 | |
---|---|---|---|
Problema | Concurs2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:8:15: error: 'int index [51]' redeclared as different kind of entity
8 | int index[NMAX];
| ^
In file included from /usr/include/string.h:462,
from /usr/include/c++/12.2.1/cstring:42,
from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/stdc++.h:48,
from main.cpp:1:
/usr/include/strings.h:61:1: note: previous declaration 'const char* index(const char*, int)'
61 | index (const char *__s, int __c) __THROW
| ^~~~~
main.cpp: In function 'int main()':
main.cpp:35:49: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
35 | if(county[j].size() > 0 && index[j] < county[j].size()) {
| ^
main.cpp:36:57: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
36 | cout << j << ' ' << county[j][index[j]] << '\n';
| ^
main.cpp:37:26: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
37 | index[j]++;
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !