Borderou de evaluare (job #2952373)
Utilizator | Data | 9 decembrie 2022 05:59:23 | |
---|---|---|---|
Problema | Pascal | 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:9:2: error: 'ifstream' was not declared in this scope; did you mean 'std::ifstream'?
9 | ifstream fin("pascal.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:2:
/usr/include/c++/10/iosfwd:162:34: note: 'std::ifstream' declared here
162 | typedef basic_ifstream<char> ifstream;
| ^~~~~~~~
main.cpp:10:2: error: 'ofstream' was not declared in this scope; did you mean 'std::ofstream'?
10 | ofstream fout("pascal.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:2:
/usr/include/c++/10/iosfwd:165:34: note: 'std::ofstream' declared here
165 | typedef basic_ofstream<char> ofstream;
| ^~~~~~~~
main.cpp:13:5: error: 'fin' was not declared in this scope
13 | fin>>R;
| ^~~
main.cpp:36:5: error: 'fout' was not declared in this scope
36 | fout<<(R%2==0 ? (nr*2-1) :nr*2);
| ^~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !