Borderou de evaluare (job #1824622)
Utilizator | Data | 8 decembrie 2016 08:20:52 | |
---|---|---|---|
Problema | Judete | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void dfs(int)’:
user.cpp:12:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j=0;j<G[nod].size();j++){
^
user.cpp: In function ‘int main()’:
user.cpp:38:9: error: ‘j’ was not declared in this scope
for(j=1;j<=n;j++)
^
user.cpp:40:4: error: expected ‘;’ before ‘for’
for(i=1;i<=n;i++)
^
user.cpp:40:13: warning: statement has no effect [-Wunused-value]
for(i=1;i<=n;i++)
^
user.cpp:40:20: error: expected ‘;’ before ‘)’ token
for(i=1;i<=n;i++)
^
In file included from /usr/include/c++/4.8/bits/char_traits.h:39:0,
from /usr/include/c++/4.8/ios:40,
from /usr/include/c++/4.8/istream:38,
from /usr/include/c++/4.8/fstream:38,
from user.cpp:1:
/usr/include/c++/4.8/bits/stl_algobase.h: In instantiation of ‘const _Tp& std::max(const _Tp&, const _Tp&, _Compare) [with _Tp = int; _Compare = int*]’:
user.cpp:21:63: required from here
/usr/include/c++/4.8/bits/stl_algobase.h:263:26: error: ‘__comp’ cannot be used as a function
if (__comp(__a, __b))
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !