Borderou de evaluare (job #2637190)

Utilizator BAlin245Bataus Alin Alexandru BAlin245 Data 21 iulie 2020 18:34:25
Problema Jocul Flip Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void cout()': main.cpp:25:3: warning: this 'for' clause does not guard... [-Wmisleading-indentation] for (int j = 0; j < n; j++) ^~~ main.cpp:27:4: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for' if (sl < 0) ^~ main.cpp: In function 'int main()': main.cpp:47:7: error: no match for 'operator<' (operand types are 'std::ofstream {aka std::basic_ofstream<char>}' and 'void') fout < fin.close(); ~~~~~^~~~~~~~~~~~~ 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:1: /usr/include/c++/6/system_error:274:3: note: candidate: bool std::operator<(const std::error_condition&, const std::error_condition&) operator<(const error_condition& __lhs, ^~~~~~~~ /usr/include/c++/6/system_error:274:3: note: no known conversion for argument 1 from 'std::ofstream {aka std::basic_ofstream<char>}' to 'const std::error_condition&' /usr/include/c++/6/system_error:200:3: note: candidate: bool std::operator<(const std::error_code&, const std::error_code&) operator<(const error_code& __lhs, const error_code& __rhs) noexcept ^~~~~~~~ /usr/include/c++/6/system_error:200:3: note: no known conversion for argument 1 from 'std::ofstream {aka std::basic_ofstream<char>}' to 'const std::error_code&' 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:1: /usr/include/c++/6/bits/basic_string.h:5178:5: note: candidate: template<class _CharT, class _Traits, class _Alloc> bool std::operator<(const _CharT*, const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&) operator<(const _CharT* __lhs, ^~~~~~~~ /usr/include/c++/6/bits/basic_string.h:5178:5: note: template argument deduction/substitution failed: main.cpp:47:19: note: mismatched types 'const _CharT*' and 'std::basic_ofstream<char>' fout < fin.close(); ^ 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:1: /usr/include/c++/6/bits/basic_string.h:5166:5: note: candidate: template<class _CharT, class _Traits, class _Alloc> bool std::operator<(const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&, const _CharT*) operator<(const basic_string<_CharT, _Traits, _Alloc>& __lhs, ^~~~~~~~ /usr/include/c++/6/bits/basic_string.h:5166:5: note: template argument deduction/substitution failed: main.cpp:47:19: note: 'std::ofstream {aka std::basic_ofstream<char>}' is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>' Non zero exit status: 1

Ceva nu functioneaza?