Borderou de evaluare (job #2842369)
Utilizator | Data | 31 ianuarie 2022 17:58:02 | |
---|---|---|---|
Problema | Maimute | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:10:18: error: 'int index [100005][2]' redeclared as different kind of entity
10 | int index[nmax][2];
| ^
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 'bool isBetween(int, int)':
main.cpp:15:17: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
15 | return index[x][0]>index[y][0]&&index[x][0]<index[y][1];
| ^
main.cpp:15:29: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
15 | return index[x][0]>index[y][0]&&index[x][0]<index[y][1];
| ^
main.cpp:15:42: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
15 | return index[x][0]>index[y][0]&&index[x][0]<index[y][1];
| ^
main.cpp:15:54: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
15 | return index[x][0]>index[y][0]&&index[x][0]<index[y][1];
| ^
main.cpp: In function 'void dfs(int, int)':
main.cpp:20:10: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
20 | index[nod][0]=ind++;
| ^
main.cpp:22:10: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
22 | index[nod][1]=ind++;
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !