Borderou de evaluare (job #2704421)
Utilizator | Data | 10 februarie 2021 16:07:23 | |
---|---|---|---|
Problema | Mesaje | 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:33:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 1; i < lines.size(); i++)
~~^~~~~~~~~~~~~~
main.cpp:36:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int ind = 0; ind < min(lines[i].size(), lines[0].size()); ind++)
~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:53:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int lineIndex = 0; lineIndex < lines.size(); lineIndex++)
~~~~~~~~~~^~~~~~~~~~~~~~
main.cpp:56:42: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int wordIndex = 0; wordIndex < min(lines[0].size(), line.size()); wordIndex++)
~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:64:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int ind = 0; ind < min(lines[highest].size(), lines[0].size()); ind++)
~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:91:14: error: no match for 'operator<<' (operand types are 'std::__cxx11::string {aka std::__cxx11::basic_string<char>}' and 'std::__cxx11::string {aka std::__cxx11::basic_string<char>}')
cout << out << " ";
^
In file included from /usr/include/c++/6/regex:62:0,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:110,
from main.cpp:1:
/usr/include/c++/6/bits/regex.h:1483:5: note: candidate: template<class _Ch_type, class _Ch_traits, class _Bi_iter> std::basic_ostream<_CharT, _Traits>& std::__cxx11::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::__cxx11::sub_match<_Bi_iter>&)
operator<<(basic_ostream<_Ch_type, _Ch_traits>& __os,
^~~~~~~~
/usr/include/c++/6/bits/regex.h:1483:5: note: template argument deduction/substitution failed:
main.cpp:91:17: note: 'std::__cxx11::string {aka std::__cxx11::basic_string<char>}' is not derived from 'std::basic_ostream<_CharT, _Traits>'
cout << out << " ";
^~~
In file included from /usr/include/c++/6/random:51:0,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:108,
from main.cpp:1:
/usr/include/c++/6/bits/random.tcc:3160:5: note: candidate: template<class _RealType, class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::piecewise_linear_distribution<_RealType>&)
operator<<(std::basic_ostream<_CharT, _Traits>& __os,
^~~~~~~~
/usr/include/c++/6/bits/random.tcc:3160:5: note: template argument deduction/substitution failed:
main.cpp:91:17: note: 'std::__cxx11::string {aka std::__cxx11::basic_string<char>}' is not derived from 'std::basic_ostream<_CharT, _Traits>'
cout << out << " ";
^~~
In file included from /usr/include/c++/6/random:51:0,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:108,
from main.cpp:1:
/usr/include/c++/6/bits/random.tcc:2944:5: note: candidate: template<class _RealType, class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::piecewise_constant_distribution<_RealType>&)
operator<<(std::basic_ostream<_CharT, _Traits>& __os,
^~~~~~~~
/usr/include/c++/6/bits/random.tcc:2944:5: note: template argument deduction/substitution failed:
main.cpp:91:17: note: 'std::__cxx11::string {aka std::__cxx11::basic_string<char>}' is not derived from 'std::basic_ostream<_CharT, _Traits>'
cout << out << " ";
^~~
In file included from /usr/include/c++/6/random:51:0,
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !