Borderou de evaluare (job #2903116)

Utilizator cosminaghitescu_Ghitescu Cosmina cosminaghitescu_ Data 17 mai 2022 10:06:55
Problema Perle Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:9:11: error: stray '#' in program 9 | return#include <iostream> | ^ main.cpp:2:1: error: 'ifstream' does not name a type 2 | ifstream cin("perle.in"); | ^~~~~~~~ main.cpp:3:1: error: 'ofstream' does not name a type 3 | ofstream cout("perle.out") | ^~~~~~~~ main.cpp: In function 'int main()': main.cpp:8:5: error: 'cout' was not declared in this scope 8 | cout << "Hello world!" << endl; | ^~~~ main.cpp:8:31: error: 'endl' was not declared in this scope; did you mean 'std::endl'? 8 | cout << "Hello world!" << endl; | ^~~~ | std::endl 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:681:5: note: 'std::endl' declared here 681 | endl(basic_ostream<_CharT, _Traits>& __os) | ^~~~ main.cpp:9:12: error: 'include' was not declared in this scope 9 | return#include <iostream> | ^~~~~~~ main.cpp:9:21: error: 'iostream' was not declared in this scope; did you mean 'std::iostream'? 9 | return#include <iostream> | ^~~~~~~~ | std::iostream In file included from /usr/include/c++/10/ios:38, from /usr/include/c++/10/istream:38, from /usr/include/c++/10/fstream:38, from main.cpp:1: /usr/include/c++/10/iosfwd:144:34: note: 'std::iostream' declared here 144 | typedef basic_iostream<char> iostream; | ^~~~~~~~ main.cpp:10:1: error: expected primary-expression before 'using' 10 | using namespace std; | ^~~~~ main.cpp:9:30: error: expected ';' before 'using' 9 | return#include <iostream> | ^ | ; 10 | using namespace std; | ~~~~~ main.cpp:13:19: error: a function-definition is not allowed here before '{' token 13 | int verif(int pm) { | ^ main.cpp:55:1: error: a function-definition is not allowed here before '{' token Non zero exit status: 1

Ceva nu functioneaza?