Borderou de evaluare (job #2423555)
Utilizator | Data | 21 mai 2019 18:14:44 | |
---|---|---|---|
Problema | Terenuri | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:162:29: error: 'typeof' was not declared in this scope
itprv = prv<typeof(S)>(S, it);
^
main.cpp:162:37: error: no matching function for call to 'prv(std::set<std::pair<double, int> >&, std::set<std::pair<double, int> >::iterator&)'
itprv = prv<typeof(S)>(S, it);
^
main.cpp:31:19: note: candidate: template<class I> class I::iterator prv(I&, class I::iterator)
class I::iterator prv(I &set, class I::iterator it)
^~~
main.cpp:31:19: note: template argument deduction/substitution failed:
main.cpp:162:37: error: template argument 1 is invalid
itprv = prv<typeof(S)>(S, it);
^
main.cpp:171:34: error: no matching function for call to 'prv(std::set<std::pair<double, int> >&, std::set<std::pair<double, int> >::iterator&)'
it = prv<typeof(S)>(S, it);
^
main.cpp:31:19: note: candidate: template<class I> class I::iterator prv(I&, class I::iterator)
class I::iterator prv(I &set, class I::iterator it)
^~~
main.cpp:31:19: note: template argument deduction/substitution failed:
main.cpp:171:34: error: template argument 1 is invalid
it = prv<typeof(S)>(S, it);
^
main.cpp:173:59: error: no matching function for call to 'prv(std::set<std::pair<double, int> >&, std::set<std::pair<double, int> >::iterator&)'
for (; semn(prv<typeof(S)>(S, prv<typeof(S)>(S, it))->second,
^
main.cpp:31:19: note: candidate: template<class I> class I::iterator prv(I&, class I::iterator)
class I::iterator prv(I &set, class I::iterator it)
^~~
main.cpp:31:19: note: template argument deduction/substitution failed:
main.cpp:173:59: error: template argument 1 is invalid
for (; semn(prv<typeof(S)>(S, prv<typeof(S)>(S, it))->second,
^
main.cpp:174:41: error: no matching function for call to 'prv(std::set<std::pair<double, int> >&, std::set<std::pair<double, int> >::iterator&)'
prv<typeof(S)>(S, it)->second, it->second) > 0; )
^
main.cpp:31:19: note: candidate: template<class I> class I::iterator prv(I&, class I::iterator)
class I::iterator prv(I &set, class I::iterator it)
^~~
main.cpp:31:19: note: template argument deduction/substitution failed:
main.cpp:174:41: error: template argument 1 is invalid
prv<typeof(S)>(S, it)->second, it->second) > 0; )
^
main.cpp:176:41: error: no matching function for call to 'prv(std::set<std::pair<double, int> >&, std::set<std::pair<double, int> >::iterator&)'
S.erase(prv<typeof(S)>(S, it));
^
main.cpp:31:19: note: candidate: template<class I> class I::iterator prv(I&, class I::iterator)
class I::iterator prv(I &set, class I::iterator it)
^~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !