Borderou de evaluare (job #2609467)

Utilizator iancupoppPopp Iancu Alexandru iancupopp Data 2 mai 2020 18:08:34
Problema Lacusta Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:3:20: error: expected ';' before ',' token using std::ifstream, std::ofstream, std::swap; ^ main.cpp:3:20: error: expected unqualified-id before ',' token main.cpp:3:35: error: expected constructor, destructor, or type conversion before ',' token using std::ifstream, std::ofstream, std::swap; ^ main.cpp:3:46: error: expected constructor, destructor, or type conversion before ';' token using std::ifstream, std::ofstream, std::swap; ^ main.cpp:6:1: error: 'ofstream' does not name a type ofstream out ("lacusta.out"); ^~~~~~~~ main.cpp: In function 'int getMin(int, int)': main.cpp:21:17: error: 'swap' was not declared in this scope swap (a, b), swap (poz_a, poz_b); ^ main.cpp:21:17: note: suggested alternatives: In file included from main.cpp:1:0: /usr/include/c++/6/fstream:1073:5: note: 'std::swap' swap(basic_fstream<_CharT, _Traits>& __x, ^~~~ In file included from /usr/include/c++/6/exception:170:0, from /usr/include/c++/6/ios:39, from /usr/include/c++/6/istream:38, from /usr/include/c++/6/fstream:38, from main.cpp:1: /usr/include/c++/6/bits/exception_ptr.h:162:5: note: 'std::__exception_ptr::swap' swap(exception_ptr& __lhs, exception_ptr& __rhs) ^~~~ In file included from /usr/include/c++/6/bits/nested_exception.h:40:0, from /usr/include/c++/6/exception:171, from /usr/include/c++/6/ios:39, from /usr/include/c++/6/istream:38, from /usr/include/c++/6/fstream:38, from main.cpp:1: /usr/include/c++/6/bits/move.h:179:5: note: 'std::swap' swap(_Tp& __a, _Tp& __b) ^~~~ main.cpp: In function 'int main()': main.cpp:44:3: error: 'out' was not declared in this scope out << min [nl] [nc]; ^~~ Non zero exit status: 1

Ceva nu functioneaza?