Borderou de evaluare (job #610270)

Utilizator avatar adriang1995 Adrian Gabriel adriang1995 IP ascuns
Problemă Matrice Zebră (clasa a 6-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 15 oct. 2021 21:45:04 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:8:5: error: 'ifstream' was not declared in this scope; did you mean 'std::ifstream'? 8 | ifstream fin("matzeb.in"); | ^~~~~~~~ | std::ifstream In file included from /usr/lib/gcc/i686-pc-linux-gnu/10.3.0/include/g++-v10/ios:38, from /usr/lib/gcc/i686-pc-linux-gnu/10.3.0/include/g++-v10/istream:38, from /usr/lib/gcc/i686-pc-linux-gnu/10.3.0/include/g++-v10/fstream:38, from main.cpp:1: /usr/lib/gcc/i686-pc-linux-gnu/10.3.0/include/g++-v10/iosfwd:162:34: note: 'std::ifstream' declared here 162 | typedef basic_ifstream<char> ifstream; | ^~~~~~~~ main.cpp:9:5: error: 'ofstream' was not declared in this scope; did you mean 'std::ofstream'? 9 | ofstream fout("matzeb.out"); | ^~~~~~~~ | std::ofstream In file included from /usr/lib/gcc/i686-pc-linux-gnu/10.3.0/include/g++-v10/ios:38, from /usr/lib/gcc/i686-pc-linux-gnu/10.3.0/include/g++-v10/istream:38, from /usr/lib/gcc/i686-pc-linux-gnu/10.3.0/include/g++-v10/fstream:38, from main.cpp:1: /usr/lib/gcc/i686-pc-linux-gnu/10.3.0/include/g++-v10/iosfwd:165:34: note: 'std::ofstream' declared here 165 | typedef basic_ofstream<char> ofstream; | ^~~~~~~~ main.cpp:10:5: error: 'fin' was not declared in this scope 10 | fin >> t; | ^~~ main.cpp:47:43: error: 'fout' was not declared in this scope 47 | if (i != 0 && j % n == 0) fout << "\n"; | ^~~~ main.cpp:48:17: error: 'fout' was not declared in this scope 48 | fout << matrix[i][j] << " "; | ^~~~ main.cpp:87:13: error: 'fout' was not declared in this scope 87 | fout << matrix[l-1][c-1]; | ^~~~ main.cpp:119:13: error: 'fout' was not declared in this scope 119 | fout << matrix[l-1][c-1]; | ^~~~