Borderou de evaluare (job #961278)
Utilizator | Data | 11 iunie 2013 20:47:54 | |
---|---|---|---|
Problema | Pioni | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:18:46: error: ‘typeof’ was not declared in this scope
#define FOR_EACH(it,v) for(typeof((v).begin()) it = (v).begin(); it != (v).end(); ++it)
^
user.cpp:50:7: note: in expansion of macro ‘FOR_EACH’
FOR_EACH(j, first_move) {
^
user.cpp:50:16: error: expected ‘;’ before ‘j’
FOR_EACH(j, first_move) {
^
user.cpp:18:48: note: in definition of macro ‘FOR_EACH’
#define FOR_EACH(it,v) for(typeof((v).begin()) it = (v).begin(); it != (v).end(); ++it)
^
user.cpp:50:16: error: ‘j’ was not declared in this scope
FOR_EACH(j, first_move) {
^
user.cpp:18:66: note: in definition of macro ‘FOR_EACH’
#define FOR_EACH(it,v) for(typeof((v).begin()) it = (v).begin(); it != (v).end(); ++it)
^
user.cpp:51:30: error: reference to ‘move’ is ambiguous
fout << *j << ' ' << move[*j] << ' ';
^
user.cpp:14:5: note: candidates are: int move [20100]
int move[MAX_N];
^
In file included from /usr/local/include/c++/4.8.0/algorithm:61:0,
from user.cpp:1:
/usr/local/include/c++/4.8.0/bits/stl_algobase.h:483:5: note: template<class _II, class _OI> _OI std::move(_II, _II, _OI)
move(_II __first, _II __last, _OI __result)
^
In file included from /usr/local/include/c++/4.8.0/bits/stl_pair.h:59:0,
from /usr/local/include/c++/4.8.0/utility:70,
from /usr/local/include/c++/4.8.0/algorithm:60,
from user.cpp:1:
/usr/local/include/c++/4.8.0/bits/move.h:101:5: note: template<class _Tp> constexpr typename std::remove_reference< <template-parameter-1-1> >::type&& std::move(_Tp&&)
move(_Tp&& __t) noexcept
^
user.cpp: In function ‘void dfs(int)’:
user.cpp:18:46: error: ‘typeof’ was not declared in this scope
#define FOR_EACH(it,v) for(typeof((v).begin()) it = (v).begin(); it != (v).end(); ++it)
^
user.cpp:63:3: note: in expansion of macro ‘FOR_EACH’
FOR_EACH (adjacent, graph[node]) {
^
user.cpp:63:13: error: expected ‘;’ before ‘adjacent’
FOR_EACH (adjacent, graph[node]) {
^
user.cpp:18:48: note: in definition of macro ‘FOR_EACH’
#define FOR_EACH(it,v) for(typeof((v).begin()) it = (v).begin(); it != (v).end(); ++it)
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !