Borderou de evaluare (job #2832993)
Utilizator | Data | 14 ianuarie 2022 16:19:42 | |
---|---|---|---|
Problema | Magic2 | 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:4:5: error: 'ifstream' was not declared in this scope; did you mean 'std::ifstream'?
4 | { ifstream fi("magic2.in"); ofstream fo("magic2.out");
| ^~~~~~~~
| 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:4:31: error: 'ofstream' was not declared in this scope; did you mean 'std::ofstream'?
4 | { ifstream fi("magic2.in"); ofstream fo("magic2.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:6:5: error: 'fi' was not declared in this scope; did you mean 'f'?
6 | fi>>n;
| ^~
| f
main.cpp:28:9: error: 'fo' was not declared in this scope; did you mean 'f'?
28 | fo<<"nu este magic\n";
| ^~
| f
main.cpp:37:9: error: 'fo' was not declared in this scope; did you mean 'f'?
37 | fo<<"magic";
| ^~
| f
main.cpp:5:41: warning: unused variable 'k' [-Wunused-variable]
5 | int i,j,n,m,l,c,a,b,d[101],e[101],f,k,q;
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !