Borderou de evaluare (job #2952086)
Utilizator | Data | 8 decembrie 2022 10:59:20 | |
---|---|---|---|
Problema | Algoritmul Bellman-Ford | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:63:56: warning: missing terminating ' character
63 | fout << ( dist[i] == oo ? 0 : dist[i] ) << '
| ^
main.cpp:63:56: error: missing terminating ' character
main.cpp:64:13: warning: missing terminating ' character
64 | ';
| ^
main.cpp:64:13: error: missing terminating ' character
64 | ';
| ^~
main.cpp: In function 'int main()':
main.cpp:63:53: error: no match for 'operator<<' (operand types are 'std::basic_ostream<char>' and 'std::ofstream' {aka 'std::basic_ofstream<char>'})
63 | fout << ( dist[i] == oo ? 0 : dist[i] ) << '
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~
| |
| std::basic_ostream<char>
64 | ';
65 | fout << '\n';
| ~~~~
| |
| std::ofstream {aka std::basic_ofstream<char>}
main.cpp:63:53: note: candidate: 'operator<<(int, int)' (built-in)
63 | fout << ( dist[i] == oo ? 0 : dist[i] ) << '
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
64 | ';
| ~~
65 | fout << '\n';
| ~~~~
main.cpp:63:53: note: no known conversion for argument 2 from 'std::ofstream' {aka 'std::basic_ofstream<char>'} to 'int'
In file included from /usr/include/c++/10/istream:39,
from /usr/include/c++/10/fstream:38,
from main.cpp:1:
/usr/include/c++/10/ostream:108:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::basic_ostream<_CharT, _Traits>::__ostream_type& (*)(std::basic_ostream<_CharT, _Traits>::__ostream_type&)) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]'
108 | operator<<(__ostream_type& (*__pf)(__ostream_type&))
| ^~~~~~~~
/usr/include/c++/10/ostream:108:36: note: no known conversion for argument 1 from 'std::ofstream' {aka 'std::basic_ofstream<char>'} to 'std::basic_ostream<char>::__ostream_type& (*)(std::basic_ostream<char>::__ostream_type&)' {aka 'std::basic_ostream<char>& (*)(std::basic_ostream<char>&)'}
108 | operator<<(__ostream_type& (*__pf)(__ostream_type&))
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/10/ostream:117:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::basic_ostream<_CharT, _Traits>::__ios_type& (*)(std::basic_ostream<_CharT, _Traits>::__ios_type&)) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>; std::basic_ostream<_CharT, _Traits>::__ios_type = std::basic_ios<char>]'
117 | operator<<(__ios_type& (*__pf)(__ios_type&))
| ^~~~~~~~
/usr/include/c++/10/ostream:117:32: note: no known conversion for argument 1 from 'std::ofstream' {aka 'std::basic_ofstream<char>'} to 'std::basic_ostream<char>::__ios_type& (*)(std::basic_ostream<char>::__ios_type&)' {aka 'std::basic_ios<char>& (*)(std::basic_ios<char>&)'}
117 | operator<<(__ios_type& (*__pf)(__ios_type&))
| ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
/usr/include/c++/10/ostream:127:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::ios_base& (*)(std::ios_base&)) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]'
127 | operator<<(ios_base& (*__pf) (ios_base&))
| ^~~~~~~~
/usr/include/c++/10/ostream:127:30: note: no known conversion for argument 1 from 'std::ofstream' {aka 'std::basic_ofstream<char>'} to 'std::ios_base& (*)(std::ios_base&)'
127 | operator<<(ios_base& (*__pf) (ios_base&))
| ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !