Borderou de evaluare (job #2779855)
Utilizator | Data | 5 octombrie 2021 11:16:04 | |
---|---|---|---|
Problema | Prieteni | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:2:1: error: 'ifstream' does not name a type
2 | ifstream fin("prieteni.in");
| ^~~~~~~~
main.cpp:3:1: error: 'ofstream' does not name a type
3 | ofstream fout("prieteni.out");
| ^~~~~~~~
main.cpp: In function 'void cit()':
main.cpp:37:2: error: 'fin' was not declared in this scope
37 | fin>>n;
| ^~~
main.cpp: In function 'void scr()':
main.cpp:97:4: error: 'fout' was not declared in this scope
97 | fout<<b[j][i]<<" ";
| ^~~~
main.cpp:100:3: error: 'fout' was not declared in this scope
100 | fout<<endl;
| ^~~~
main.cpp:100:9: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
100 | fout<<endl;
| ^~~~
| std::endl
In file included from /usr/include/c++/10/istream:39,
from /usr/include/c++/10/fstream:38,
from main.cpp:1:
/usr/include/c++/10/ostream:681:5: note: 'std::endl' declared here
681 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~
main.cpp:102:2: error: 'fout' was not declared in this scope
102 | fout<<timp;
| ^~~~
main.cpp: In function 'int main()':
main.cpp:110:2: error: 'fout' was not declared in this scope
110 | fout.close();
| ^~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !