Borderou de evaluare (job #3363567)
| Utilizator | Data | 19 august 2026 13:57: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:42:5: error: 'ifstream' was not declared in this scope; did you mean 'std::ifstream'?
42 | ifstream fin("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:43:5: error: 'ofstream' was not declared in this scope; did you mean 'std::ofstream'?
43 | ofstream fout("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:45:5: error: 'fin' was not declared in this scope
45 | fin>>n>>k;
| ^~~
main.cpp:56:5: error: 'fout' was not declared in this scope
56 | fout<<ans;
| ^~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
