Borderou de evaluare (job #2077830)
Utilizator | Data | 28 noiembrie 2017 17:46:02 | |
---|---|---|---|
Problema | Factorial | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:4:1: error: ‘ifstream’ does not name a type
ifstream in("fact.in");
^
user.cpp:5:1: error: ‘ofstream’ does not name a type
ofstream out("fact.out");
^
user.cpp: In function ‘int main()’:
user.cpp:10:2: error: ‘in’ was not declared in this scope
in>>p;
^
user.cpp:23:17: error: ‘out’ was not declared in this scope
if(fives != p) out<<-1;
^
user.cpp:24:7: error: ‘out’ was not declared in this scope
else out<<ok;
^
user.cpp:26:2: error: ‘out’ was not declared in this scope
out.close();
^
user.cpp:9:15: warning: unused variable ‘twos’ [-Wunused-variable]
int p,ok=0,n,twos=0,fives=0,pp;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !