Borderou de evaluare (job #1321115)
Utilizator | Data | 18 ianuarie 2015 19:48:39 | |
---|---|---|---|
Problema | Potrivire | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘std::vector<std::basic_string<char> > tokenize(std::string&)’:
user.cpp:6:45: error: ‘typeof’ was not declared in this scope
#define FORIT(it, v) for (typeof((v).begin()) it = (v).begin(); it != (v).end(); ++it)
^
user.cpp:23:5: note: in expansion of macro ‘FORIT’
FORIT(it, s)
^
user.cpp:23:11: error: expected ‘;’ before ‘it’
FORIT(it, s)
^
user.cpp:6:47: note: in definition of macro ‘FORIT’
#define FORIT(it, v) for (typeof((v).begin()) it = (v).begin(); it != (v).end(); ++it)
^
user.cpp:6:68: error: no match for ‘operator!=’ (operand types are ‘std::vector<std::basic_string<char> >’ and ‘std::basic_string<char>::iterator {aka __gnu_cxx::__normal_iterator<char*, std::basic_string<char> >}’)
#define FORIT(it, v) for (typeof((v).begin()) it = (v).begin(); it != (v).end(); ++it)
^
user.cpp:23:5: note: in expansion of macro ‘FORIT’
FORIT(it, s)
^
user.cpp:6:68: note: candidates are:
#define FORIT(it, v) for (typeof((v).begin()) it = (v).begin(); it != (v).end(); ++it)
^
user.cpp:23:5: note: in expansion of macro ‘FORIT’
FORIT(it, s)
^
In file included from /usr/include/c++/4.8/iosfwd:40:0,
from /usr/include/c++/4.8/ios:38,
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/postypes.h:221:5: note: template<class _StateT> bool std::operator!=(const std::fpos<_StateT>&, const std::fpos<_StateT>&)
operator!=(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs)
^
/usr/include/c++/4.8/bits/postypes.h:221:5: note: template argument deduction/substitution failed:
user.cpp:6:79: note: ‘std::vector<std::basic_string<char> >’ is not derived from ‘const std::fpos<_StateT>’
#define FORIT(it, v) for (typeof((v).begin()) it = (v).begin(); it != (v).end(); ++it)
^
user.cpp:23:5: note: in expansion of macro ‘FORIT’
FORIT(it, s)
^
In file included from /usr/include/c++/4.8/bits/stl_algobase.h:64:0,
from /usr/include/c++/4.8/bits/char_traits.h:39,
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_pair.h:227:5: note: template<class _T1, class _T2> constexpr bool std::operator!=(const std::pair<_T1, _T2>&, const std::pair<_T1, _T2>&)
operator!=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
^
/usr/include/c++/4.8/bits/stl_pair.h:227:5: note: template argument deduction/substitution failed:
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !