Borderou de evaluare (job #3291291)
Utilizator | Data | 3 aprilie 2025 23:52:59 | |
---|---|---|---|
Problema | Sortare prin comparare | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:46:5: error: 'ifstream' was not declared in this scope; did you mean 'std::ifstream'?
46 | ifstream fin("algsort.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:1:
/usr/include/c++/12.2.1/iosfwd:162:41: note: 'std::ifstream' declared here
162 | typedef basic_ifstream<char> ifstream;
| ^~~~~~~~
main.cpp:47:5: error: 'ofstream' was not declared in this scope; did you mean 'std::ofstream'?
47 | ofstream fout("algsort.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:49:5: error: 'fin' was not declared in this scope; did you mean 'sin'?
49 | fin >> n;
| ^~~
| sin
main.cpp:60:9: error: 'fout' was not declared in this scope
60 | fout << x << " ";
| ^~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !