Borderou de evaluare (job #2394874)
Utilizator | Data | 2 aprilie 2019 00:32:39 | |
---|---|---|---|
Problema | Lowest Common Ancestor | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:14:15: error: 'int index [100005]' redeclared as different kind of symbol
int index[NMAX];
^
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 dfs(int)':
main.cpp:51:13: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
if(!index[x])
^
main.cpp:52:12: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
index[x]=lg;
^
main.cpp:53:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i=0;i<G[x].size();i++)
~^~~~~~~~~~~~
main.cpp: In function 'void rezolv()':
main.cpp:77:15: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
x=index[x];
^
main.cpp:78:15: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
y=index[y];
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !