Borderou de evaluare (job #3287211)
Utilizator | Data | 16 martie 2025 20:28:09 | |
---|---|---|---|
Problema | Mergesort | 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:63:10: error: no match for 'operator<<' (operand types are 'std::ifstream' {aka 'std::basic_ifstream<char>'} and 'int')
63 | fout << SOL % 1000003 << endl;
| ~~~~ ^~ ~~~~~~~~~~~~~
| | |
| | int
| std::ifstream {aka std::basic_ifstream<char>}
main.cpp:63:10: note: candidate: 'operator<<(int, int)' (built-in)
63 | fout << SOL % 1000003 << endl;
| ~~~~~^~~~~~~~~~~~~~~~
main.cpp:63:10: note: no known conversion for argument 1 from 'std::ifstream' {aka 'std::basic_ifstream<char>'} to 'int'
In file included from /usr/include/c++/12.2.1/regex:66,
from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/stdc++.h:110,
from main.cpp:1:
/usr/include/c++/12.2.1/bits/regex.h:1679: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 sub_match<_Bi_iter>&)'
1679 | operator<<(basic_ostream<_Ch_type, _Ch_traits>& __os,
| ^~~~~~~~
/usr/include/c++/12.2.1/bits/regex.h:1679:5: note: template argument deduction/substitution failed:
main.cpp:63:19: note: 'std::ifstream' {aka 'std::basic_ifstream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
63 | fout << SOL % 1000003 << endl;
| ^~~~~~~
In file included from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/stdc++.h:45:
/usr/include/c++/12.2.1/cstddef:123:5: note: candidate: 'template<class _IntegerType> constexpr std::__byte_op_t<_IntegerType> std::operator<<(byte, _IntegerType)'
123 | operator<<(byte __b, _IntegerType __shift) noexcept
| ^~~~~~~~
/usr/include/c++/12.2.1/cstddef:123:5: note: template argument deduction/substitution failed:
main.cpp:63:5: note: cannot convert 'fout' (type 'std::ifstream' {aka 'std::basic_ifstream<char>'}) to type 'std::byte'
63 | fout << SOL % 1000003 << endl;
| ^~~~
In file included from /usr/include/c++/12.2.1/bits/basic_string.h:47,
from /usr/include/c++/12.2.1/string:53,
from /usr/include/c++/12.2.1/bits/locale_classes.h:40,
from /usr/include/c++/12.2.1/bits/ios_base.h:41,
from /usr/include/c++/12.2.1/ios:42,
from /usr/include/c++/12.2.1/istream:38,
from /usr/include/c++/12.2.1/sstream:38,
from /usr/include/c++/12.2.1/complex:45,
from /usr/include/c++/12.2.1/ccomplex:39,
from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/stdc++.h:54:
/usr/include/c++/12.2.1/string_view:672:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, basic_string_view<_CharT, _Traits>)'
672 | operator<<(basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/usr/include/c++/12.2.1/string_view:672:5: note: template argument deduction/substitution failed:
main.cpp:63:19: note: 'std::ifstream' {aka 'std::basic_ifstream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
63 | fout << SOL % 1000003 << endl;
| ^~~~~~~
/usr/include/c++/12.2.1/bits/basic_string.h:3883:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
3883 | operator<<(basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/usr/include/c++/12.2.1/bits/basic_string.h:3883:5: note: template argument deduction/substitution failed:
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !