Borderou de evaluare (job #2866215)
Utilizator | Data | 9 martie 2022 14:15:44 | |
---|---|---|---|
Problema | Tango2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void build(int, int, int)':
main.cpp:96:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
96 | for (int i = 1; i < aint[0][nod].val.size(); i++)
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:98:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
98 | for (int i = 1; i < aint[1][nod].val.size(); i++)
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:136:6: error: no match for 'operator>>' (operand types are 'InParser' and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
136 | fin >> s;
| ~~~ ^~ ~
| | |
| | std::string {aka std::__cxx11::basic_string<char>}
| InParser
main.cpp:30:12: note: candidate: 'InParser& InParser::operator>>(int&)'
30 | InParser& operator >> (int &n) {
| ^~~~~~~~
main.cpp:30:30: note: no known conversion for argument 1 from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'int&'
30 | InParser& operator >> (int &n) {
| ~~~~~^
main.cpp:47:12: note: candidate: 'InParser& InParser::operator>>(long long int&)'
47 | InParser& operator >> (long long &n) {
| ^~~~~~~~
main.cpp:47:36: note: no known conversion for argument 1 from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'long long int&'
47 | InParser& operator >> (long long &n) {
| ~~~~~~~~~~~^
In file included from /usr/include/c++/10/string:56,
from /usr/include/c++/10/bits/locale_classes.h:40,
from /usr/include/c++/10/bits/ios_base.h:41,
from /usr/include/c++/10/ios:42,
from /usr/include/c++/10/istream:38,
from /usr/include/c++/10/sstream:38,
from /usr/include/c++/10/complex:45,
from /usr/include/c++/10/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:54,
from main.cpp:1:
/usr/include/c++/10/bits/basic_string.tcc:1468:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&)'
1468 | operator>>(basic_istream<_CharT, _Traits>& __in,
| ^~~~~~~~
/usr/include/c++/10/bits/basic_string.tcc:1468:5: note: template argument deduction/substitution failed:
main.cpp:136:9: note: 'InParser' is not derived from 'std::basic_istream<_CharT, _Traits>'
136 | fin >> s;
| ^
In file included from /usr/include/c++/10/istream:991,
from /usr/include/c++/10/sstream:38,
from /usr/include/c++/10/complex:45,
from /usr/include/c++/10/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:54,
from main.cpp:1:
/usr/include/c++/10/bits/istream.tcc:931:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, _CharT&)'
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !