Borderou de evaluare (job #2743896)
Utilizator | Data | 23 aprilie 2021 17:26:20 | |
---|---|---|---|
Problema | Subsir crescator maximal | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:6:21: error: invalid use of incomplete type 'std::ifstream {aka class std::basic_ifstream<char>}'
ifstream("scmax.in");
^
In file included from /usr/include/c++/6/ios:38:0,
from /usr/include/c++/6/ostream:38,
from /usr/include/c++/6/iostream:39,
from main.cpp:1:
/usr/include/c++/6/iosfwd:116:11: note: declaration of 'std::ifstream {aka class std::basic_ifstream<char>}'
class basic_ifstream;
^~~~~~~~~~~~~~
main.cpp:7:22: error: invalid use of incomplete type 'std::ofstream {aka class std::basic_ofstream<char>}'
ofstream("scmax.out");
^
In file included from /usr/include/c++/6/ios:38:0,
from /usr/include/c++/6/ostream:38,
from /usr/include/c++/6/iostream:39,
from main.cpp:1:
/usr/include/c++/6/iosfwd:119:11: note: declaration of 'std::ofstream {aka class std::basic_ofstream<char>}'
class basic_ofstream;
^~~~~~~~~~~~~~
main.cpp:9:2: error: 'fin' was not declared in this scope
fin >> N;
^~~
main.cpp:47:2: error: 'fout' was not declared in this scope
fout << sol << '\n';
^~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !