Borderou de evaluare (job #3283844)

Utilizator KLNNNDanaila Calin KLNNN Data 10 martie 2025 16:26:06
Problema Sah 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:19:5: error: 'ifstream' was not declared in this scope; did you mean 'std::ifstream'? 19 | ifstream cin("sah.in"); | ^~~~~~~~ | std::ifstream In file included from /usr/include/c++/12.2.1/ios:38, 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, from main.cpp:15: /usr/include/c++/12.2.1/iosfwd:162:41: note: 'std::ifstream' declared here 162 | typedef basic_ifstream<char> ifstream; | ^~~~~~~~ main.cpp:20:5: error: 'ofstream' was not declared in this scope; did you mean 'std::ofstream'? 20 | ofstream cout("sah.out"); | ^~~~~~~~ | std::ofstream /usr/include/c++/12.2.1/iosfwd:165:41: note: 'std::ofstream' declared here 165 | typedef basic_ofstream<char> ofstream; | ^~~~~~~~ main.cpp:23:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 23 | cin >> n; | ^~~ | std::cin In file included from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/stdc++.h:75: /usr/include/c++/12.2.1/iostream:60:18: note: 'std::cin' declared here 60 | extern istream cin; /// Linked to standard input | ^~~ main.cpp:26:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 26 | cout << "1 1 1 1\n1 1 1 1\n2 3 3 3\n2 3 3 3"; | ^~~~ | std::cout /usr/include/c++/12.2.1/iostream:61:18: note: 'std::cout' declared here 61 | extern ostream cout; /// Linked to standard output | ^~~~ main.cpp:32:13: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 32 | cout << i * 2 << " "; | ^~~~ | std::cout /usr/include/c++/12.2.1/iostream:61:18: note: 'std::cout' declared here 61 | extern ostream cout; /// Linked to standard output | ^~~~ main.cpp:35:13: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 35 | cout << i * 2 + 1 << " "; | ^~~~ | std::cout /usr/include/c++/12.2.1/iostream:61:18: note: 'std::cout' declared here 61 | extern ostream cout; /// Linked to standard output Non zero exit status: 1

Ceva nu functioneaza?