Borderou de evaluare (job #1579255)
Utilizator | Data | 24 ianuarie 2016 16:08:53 | |
---|---|---|---|
Problema | Factorial | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:10:5: error: ‘ifstream’ was not declared in this scope
ifstream fin(input);
^
user.cpp:10:5: note: suggested alternative:
In file included from /usr/include/c++/4.8/ios:38:0,
from /usr/include/c++/4.8/istream:38,
from /usr/include/c++/4.8/fstream:38,
from user.cpp:1:
/usr/include/c++/4.8/iosfwd:157:34: note: ‘std::ifstream’
typedef basic_ifstream<char> ifstream;
^
user.cpp:10:14: error: expected ‘;’ before ‘fin’
ifstream fin(input);
^
user.cpp:11:5: error: ‘ofstream’ was not declared in this scope
ofstream fout(output);
^
user.cpp:11:5: note: suggested alternative:
In file included from /usr/include/c++/4.8/ios:38:0,
from /usr/include/c++/4.8/istream:38,
from /usr/include/c++/4.8/fstream:38,
from user.cpp:1:
/usr/include/c++/4.8/iosfwd:160:34: note: ‘std::ofstream’
typedef basic_ofstream<char> ofstream;
^
user.cpp:11:14: error: expected ‘;’ before ‘fout’
ofstream fout(output);
^
user.cpp:12:5: error: ‘fin’ was not declared in this scope
fin>>p;
^
user.cpp:24:13: error: ‘fout’ was not declared in this scope
fout<<"-1"<<"\n";
^
user.cpp:33:13: error: ‘fout’ was not declared in this scope
fout<<x*5;
^
user.cpp:38:13: error: ‘fout’ was not declared in this scope
fout<<-1;
^
user.cpp:40:5: error: ‘fout’ was not declared in this scope
fout<<"\n";
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !