Borderou de evaluare (job #2234658)
Utilizator | Data | 25 august 2018 22:24:02 | |
---|---|---|---|
Problema | Nespus | Status | done |
Runda | Algoritmiada 2018 Runda Maraton | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:16:12: error: conflicting declaration ‘std::vector<int> act’
vector<int>act;
^~~
user.cpp:9:5: note: previous declaration as ‘int act [800002]’
int act[N];
^~~
user.cpp: In function ‘void dfsLabel(int, int, int)’:
user.cpp:31:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0;i<g[node].size(); ++i) {
~^~~~~~~~~~~~~~~
user.cpp: In function ‘void join(int, int, int)’:
user.cpp:52:23: error: incompatible types in assignment of ‘std::vector<int>’ to ‘int [800002]’
act = vector<int>();
^
user.cpp: In function ‘bool pot(int)’:
user.cpp:71:18: error: request for member ‘clear’ in ‘act’, which is of non-class type ‘int [800002]’
cntL = 0;act.clear();
^~~~~
user.cpp:72:5: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
for(int i = 1; i < N; ++i)
^~~
user.cpp:74:7: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘for’
for(int i=1;i<n;++i)went[i]=0,cant[i]=0;
^~~
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !