Borderou de evaluare (job #3001037)
Utilizator | Data | 13 martie 2023 10:25:06 | |
---|---|---|---|
Problema | Subgeom | Status | done |
Runda | simusimumeu | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:14:28: error: 'std::vector<int> index [100005]' redeclared as different kind of entity
14 | vector<int> index[MAX_V + 5];
| ^
In file included from /usr/include/string.h:432,
from /usr/include/c++/10/cstring:42,
from /usr/include/x86_64-linux-gnu/c++/10/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:26:18: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
26 | index[v[i]].push_back(i);
| ^
main.cpp:41:48: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
41 | st = 0, dr = (int)index[lst].size()-1;
| ^
main.cpp:44:37: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
44 | if(index[lst][md] > poz){
| ^
main.cpp:53:40: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
53 | poz = index[lst][save];
| ^
main.cpp:66:48: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
66 | st = 0, dr = (int)index[d].size()-1;
| ^
main.cpp:69:37: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
69 | if(index[d][md] < i){
| ^
main.cpp:88:18: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
88 | index[val].clear();
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !