Borderou de evaluare (job #2642308)
Utilizator | Data | 14 august 2020 17:02:06 | |
---|---|---|---|
Problema | Heavy Path Decomposition | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:24:16: error: 'int index [100001]' redeclared as different kind of symbol
int index[1 + N];
^
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 'void dfsChains(int, int)':
main.cpp:29:15: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
index[node] = ++nr;
^
main.cpp: In function 'int main()':
main.cpp:86:36: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
updatePos (1, 1, n, index[i], value[i]);
^
main.cpp:93:40: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
updatePos (1, 1, n, index[x], newValue);
^
main.cpp:102:68: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
ans = max (ans, queryRange (1, 1, n, index[chain[x]], index[x]));
^
main.cpp:102:78: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
ans = max (ans, queryRange (1, 1, n, index[chain[x]], index[x]));
^
main.cpp:107:57: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
ans = max (ans, queryRange (1, 1, n, index[x], index[y]));
^
main.cpp:107:67: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
ans = max (ans, queryRange (1, 1, n, index[x], index[y]));
^
main.cpp:66:41: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen ("heavypath.in", "r", stdin);
^
main.cpp:67:43: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen ("heavypath.out", "w", stdout);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !