Borderou de evaluare (job #2577117)
Utilizator | Data | 8 martie 2020 14:15:49 | |
---|---|---|---|
Problema | Metrou2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:8:32: error: 'int index [100005]' redeclared as different kind of symbol
int costs[100005], index[100005], nums[100005], dp[20][20][4], smax[100005], needed[100005], keep[100005];
^
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:34:20: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
index[i] = k;
^
main.cpp:39:20: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
if(!index[i]) continue;
^
main.cpp:42:24: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
if(!index[j]) continue;
^
main.cpp: In function 'void dfs(int, int, bool)':
main.cpp:65:17: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
if(index[now]){
^
main.cpp:71:29: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
int i1 = index[start], i2 = index[now];
^
main.cpp:72:16: error: 'i2' was not declared in this scope
dp[i1][i2][0] += find_max(1, l);
^~
main.cpp:81:28: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
int i = index[start];
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !