Borderou de evaluare (job #1038675)
Utilizator | Data | 21 noiembrie 2013 21:27:10 | |
---|---|---|---|
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:6:2: error: ‘ifstream’ was not declared in this scope
ifstream f("fac.in");
^
user.cpp:6:2: note: suggested alternative:
In file included from /usr/local/include/c++/4.8.0/ios:38:0,
from /usr/local/include/c++/4.8.0/ostream:38,
from /usr/local/include/c++/4.8.0/iostream:39,
from user.cpp:1:
/usr/local/include/c++/4.8.0/iosfwd:157:34: note: ‘std::ifstream’
typedef basic_ifstream<char> ifstream;
^
user.cpp:6:11: error: expected ‘;’ before ‘f’
ifstream f("fac.in");
^
user.cpp:7:2: error: ‘ofstream’ was not declared in this scope
ofstream g("fac.out");
^
user.cpp:7:2: note: suggested alternative:
In file included from /usr/local/include/c++/4.8.0/ios:38:0,
from /usr/local/include/c++/4.8.0/ostream:38,
from /usr/local/include/c++/4.8.0/iostream:39,
from user.cpp:1:
/usr/local/include/c++/4.8.0/iosfwd:160:34: note: ‘std::ofstream’
typedef basic_ofstream<char> ofstream;
^
user.cpp:7:11: error: expected ‘;’ before ‘g’
ofstream g("fac.out");
^
user.cpp:8:2: error: ‘f’ was not declared in this scope
f>>p;
^
user.cpp:10:3: error: ‘g’ was not declared in this scope
g<<1;
^
user.cpp:24:3: error: ‘g’ was not declared in this scope
g<<-1;
^
user.cpp:26:2: error: ‘g’ was not declared in this scope
g<<(t-m)*5;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !