Borderou de evaluare (job #2899355)

Utilizator ClaudiuChelceaClaudiuChelcea ClaudiuChelcea Data 8 mai 2022 16:20:52
Problema SequenceQuery 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:10:3: error: 'ifstream' was not declared in this scope; did you mean 'std::ifstream'? 10 | ifstream f ("sequencequery.in"); | ^~~~~~~~ | std::ifstream 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:162:34: note: 'std::ifstream' declared here 162 | typedef basic_ifstream<char> ifstream; | ^~~~~~~~ main.cpp:11:3: error: 'ofstream' was not declared in this scope; did you mean 'std::ofstream'? 11 | ofstream g ("sequencequery.out"); | ^~~~~~~~ | std::ofstream 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:165:34: note: 'std::ofstream' declared here 165 | typedef basic_ofstream<char> ofstream; | ^~~~~~~~ main.cpp:12:3: error: 'f' was not declared in this scope 12 | f >> n >> m; | ^ main.cpp:22:28: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare] 22 | for (j = x[i] + 1; j <= y[i]; ++j) | ~~^~~~~~~ main.cpp:38:7: error: 'g' was not declared in this scope 38 | g << sumamax << '\n'; | ^ main.cpp:41:3: error: 'g' was not declared in this scope 41 | g.close (); | ^ Non zero exit status: 1

Ceva nu functioneaza?