Borderou de evaluare (job #2785470)

Utilizator gamergodGamer God gamergod Data 18 octombrie 2021 18:59:23
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 'int main()': main.cpp:8:2: error: 'ifstream' was not declared in this scope; did you mean 'std::ifstream'? 8 | ifstream in("flip.in"); // take input | ^~~~~~~~ | std::ifstream In file included from /usr/include/c++/10/ios:38, from /usr/include/c++/10/ostream:38, from /usr/include/c++/10/iostream:39, from main.cpp:1: /usr/include/c++/10/iosfwd:162:34: note: 'std::ifstream' declared here 162 | typedef basic_ifstream<char> ifstream; | ^~~~~~~~ main.cpp:9:2: error: 'ofstream' was not declared in this scope; did you mean 'std::ofstream'? 9 | ofstream out("flip.out"); // give output | ^~~~~~~~ | std::ofstream In file included from /usr/include/c++/10/ios:38, from /usr/include/c++/10/ostream:38, from /usr/include/c++/10/iostream:39, from main.cpp:1: /usr/include/c++/10/iosfwd:165:34: note: 'std::ofstream' declared here 165 | typedef basic_ofstream<char> ofstream; | ^~~~~~~~ main.cpp:11:2: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 11 | cin >> N >> M // dimensiumile matricei | ^~~ | std::cin In file included from main.cpp:1: /usr/include/c++/10/iostream:60:18: note: 'std::cin' declared here 60 | extern istream cin; /// Linked to standard input | ^~~ main.cpp:14:16: error: 'i' was not declared in this scope 14 | for(short i=0;i<N;i++){ | ^ main.cpp:20:15: error: 'o' was not declared in this scope 20 | for(short j=o;j<M;++j){ | ^ main.cpp:37:11: error: 'c' was not declared in this scope 37 | m[z][c] = -1*m[z][c]; | ^ main.cpp:42:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 42 | }} cout << sum; | ^~~~ | std::cout In file included from main.cpp:1: /usr/include/c++/10/iostream:61:18: note: 'std::cout' declared here 61 | extern ostream cout; /// Linked to standard output | ^~~~ Non zero exit status: 1

Ceva nu functioneaza?