Borderou de evaluare (job #2077815)
Utilizator | Data | 28 noiembrie 2017 17:31:53 | |
---|---|---|---|
Problema | Factorial | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:3:1: error: ‘ifstream’ does not name a type
ifstream f("fact.in");
^
user.cpp:4:1: error: ‘ofstream’ does not name a type
ofstream g("fact.out");
^
user.cpp: In function ‘int main()’:
user.cpp:9:5: error: ‘f’ was not declared in this scope
f>>p;
^
user.cpp:10:14: error: ‘g’ was not declared in this scope
if(p==0) g<<1;
^
user.cpp:11:19: error: ‘g’ was not declared in this scope
else if(p==1) g<<120;
^
user.cpp:12:10: error: ‘g’ was not declared in this scope
else g<<(p*2)-1;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !