Borderou de evaluare (job #2756837)
Utilizator | Data | 3 iunie 2021 09:41:18 | |
---|---|---|---|
Problema | Alegeri | Status | done |
Runda | Arhiva ICPC | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void dfs(int, std::vector<int>&, int)':
main.cpp:49:30: error: too few arguments to function 'void dfs(int, std::vector<int>&, int)'
dfs(it.dest, comp);
^
main.cpp:41:6: note: declared here
void dfs(int node, vector < int > &comp, int nrComp)
^~~
main.cpp: In function 'void solve()':
main.cpp:91:28: error: 'begin' was not declared in this scope
for (auto it : node)
^~~~
main.cpp:91:28: note: suggested alternatives:
In file included from /usr/include/c++/6/string:51:0,
from /usr/include/c++/6/bits/locale_classes.h:40,
from /usr/include/c++/6/bits/ios_base.h:41,
from /usr/include/c++/6/ios:42,
from /usr/include/c++/6/istream:38,
from /usr/include/c++/6/fstream:38,
from main.cpp:1:
/usr/include/c++/6/bits/range_access.h:105:37: note: 'std::begin'
template<typename _Tp> const _Tp* begin(const valarray<_Tp>&);
^~~~~
/usr/include/c++/6/bits/range_access.h:105:37: note: 'std::begin'
main.cpp:91:28: error: 'end' was not declared in this scope
for (auto it : node)
^~~~
main.cpp:91:28: note: suggested alternatives:
In file included from /usr/include/c++/6/string:51:0,
from /usr/include/c++/6/bits/locale_classes.h:40,
from /usr/include/c++/6/bits/ios_base.h:41,
from /usr/include/c++/6/ios:42,
from /usr/include/c++/6/istream:38,
from /usr/include/c++/6/fstream:38,
from main.cpp:1:
/usr/include/c++/6/bits/range_access.h:107:37: note: 'std::end'
template<typename _Tp> const _Tp* end(const valarray<_Tp>&);
^~~
/usr/include/c++/6/bits/range_access.h:107:37: note: 'std::end'
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !