Borderou de evaluare (job #1090749)
Utilizator | Data | 23 ianuarie 2014 00:27:39 | |
---|---|---|---|
Problema | Easygraph | Status | done |
Runda | Arhiva ICPC | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void DFS(int)’:
user.cpp:20:28: error: cannot convert ‘std::vector<int>’ to ‘int’ in initialization
int Vecin=G[nod];
^
user.cpp: In function ‘int main()’:
user.cpp:34:17: error: cannot bind ‘std::basic_istream<char>’ lvalue to ‘std::basic_istream<char>&&’
eu>>V;
^
In file included from /usr/local/include/c++/4.8.0/fstream:38:0,
from user.cpp:1:
/usr/local/include/c++/4.8.0/istream:872:5: error: initializing argument 1 of ‘std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&&, _Tp&) [with _CharT = char; _Traits = std::char_traits<char>; _Tp = int [1000005]]’
operator>>(basic_istream<_CharT, _Traits>&& __is, _Tp& __x)
^
user.cpp:38:15: error: request for member ‘push_back’ in ‘G’, which is of non-class type ‘std::vector<int> [30005]’
G.push_back(y);
^
user.cpp:41:17: warning: the address of ‘use’ will always evaluate as ‘true’ [-Waddress]
if(!use)
^
user.cpp:44:29: error: no matching function for call to ‘max(long long int&, long long int [30005])’
Smax=max(Smax,DP);
^
user.cpp:44:29: note: candidates are:
In file included from /usr/local/include/c++/4.8.0/bits/char_traits.h:39:0,
from /usr/local/include/c++/4.8.0/ios:40,
from /usr/local/include/c++/4.8.0/istream:38,
from /usr/local/include/c++/4.8.0/fstream:38,
from user.cpp:1:
/usr/local/include/c++/4.8.0/bits/stl_algobase.h:216:5: note: template<class _Tp> const _Tp& std::max(const _Tp&, const _Tp&)
max(const _Tp& __a, const _Tp& __b)
^
/usr/local/include/c++/4.8.0/bits/stl_algobase.h:216:5: note: template argument deduction/substitution failed:
user.cpp:44:29: note: deduced conflicting types for parameter ‘const _Tp’ (‘long long int’ and ‘long long int [30005]’)
Smax=max(Smax,DP);
^
In file included from /usr/local/include/c++/4.8.0/bits/char_traits.h:39:0,
from /usr/local/include/c++/4.8.0/ios:40,
from /usr/local/include/c++/4.8.0/istream:38,
from /usr/local/include/c++/4.8.0/fstream:38,
from user.cpp:1:
/usr/local/include/c++/4.8.0/bits/stl_algobase.h:260:5: note: template<class _Tp, class _Compare> const _Tp& std::max(const _Tp&, const _Tp&, _Compare)
max(const _Tp& __a, const _Tp& __b, _Compare __comp)
^
/usr/local/include/c++/4.8.0/bits/stl_algobase.h:260:5: note: template argument deduction/substitution failed:
user.cpp:44:29: note: deduced conflicting types for parameter ‘const _Tp’ (‘long long int’ and ‘long long int [30005]’)
Smax=max(Smax,DP);
^
user.cpp:49:15: error: request for member ‘clear’ in ‘G’, which is of non-class type ‘std::vector<int> [30005]’
G.clear();
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !