Borderou de evaluare (job #3162780)
Utilizator | Data | 29 octombrie 2023 21:01:16 | |
---|---|---|---|
Problema | Transport | 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:21:5: error: 'ifstream' was not declared in this scope; did you mean 'std::ifstream'?
21 | ifstream f("transport.in");
| ^~~~~~~~
| std::ifstream
In file included from /usr/include/c++/12.2.1/ios:38,
from /usr/include/c++/12.2.1/ostream:38,
from /usr/include/c++/12.2.1/iostream:39,
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:22:5: error: 'ofstream' was not declared in this scope; did you mean 'std::ofstream'?
22 | ofstream g("transport.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:23:5: error: 'f' was not declared in this scope
23 | f>>n>>k;
| ^
main.cpp:34:5: error: 'g' was not declared in this scope
34 | g<<rez+1;
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !