Borderou de evaluare (job #2512426)
Utilizator | Data | 21 decembrie 2019 06:58:53 | |
---|---|---|---|
Problema | Rufe | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:14:1: error: 'inFile' does not name a type
inFile.open("rufe.in");
^~~~~~
main.cpp:16:1: error: 'toFile' does not name a type
toFile.open("rufe.out");
^~~~~~
main.cpp: In function 'int foo(int, long long unsigned int, long long unsigned int, long long unsigned int, long long unsigned int)':
main.cpp:36:8: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(x > maxi - maxSE){
~~^~~~~~~~~~~~~~
main.cpp:39:9: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (x > maxi - maxNE)
~~^~~~~~~~~~~~~~
main.cpp:43:9: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (x > maxi - maxNV)
~~^~~~~~~~~~~~~~
main.cpp:47:9: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (x > maxi - maxSV)
~~^~~~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:61:11: error: no match for 'operator<<' (operand types are 'std::ifstream {aka std::basic_ifstream<char>}' and 'long long int')
inFile<<row;
~~~~~~^~~~~
main.cpp:61:11: note: candidate: operator<<(int, long long int) <built-in>
main.cpp:61:11: note: no known conversion for argument 1 from 'std::ifstream {aka std::basic_ifstream<char>}' to 'int'
In file included from /usr/include/c++/6/string:52:0,
from /usr/include/c++/6/bits/locale_classes.h:40,
from /usr/include/c++/6/bits/ios_base.h:41,
from /usr/include/c++/6/ios:42,
from /usr/include/c++/6/ostream:38,
from /usr/include/c++/6/iostream:39,
from main.cpp:9:
/usr/include/c++/6/bits/basic_string.h:5343:5: note: candidate: template<class _CharT, class _Traits, class _Alloc> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&)
operator<<(basic_ostream<_CharT, _Traits>& __os,
^~~~~~~~
/usr/include/c++/6/bits/basic_string.h:5343:5: note: template argument deduction/substitution failed:
main.cpp:61:13: note: 'std::ifstream {aka std::basic_ifstream<char>}' is not derived from 'std::basic_ostream<_CharT, _Traits>'
inFile<<row;
^~~
In file included from /usr/include/c++/6/bits/ios_base.h:46:0,
from /usr/include/c++/6/ios:42,
from /usr/include/c++/6/ostream:38,
from /usr/include/c++/6/iostream:39,
from main.cpp:9:
/usr/include/c++/6/system_error:209:5: note: candidate: template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::error_code&)
operator<<(basic_ostream<_CharT, _Traits>& __os, const error_code& __e)
^~~~~~~~
/usr/include/c++/6/system_error:209:5: note: template argument deduction/substitution failed:
main.cpp:61:13: note: 'std::ifstream {aka std::basic_ifstream<char>}' is not derived from 'std::basic_ostream<_CharT, _Traits>'
inFile<<row;
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !