Borderou de evaluare (job #1358726)
Utilizator | Data | 24 februarie 2015 19:25:35 | |
---|---|---|---|
Problema | Factorial | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:2:1: error: ‘ifstream’ does not name a type
ifstream cin("fact.in");
^
user.cpp:3:1: error: ‘ofstream’ does not name a type
ofstream cout("fact.out");
^
user.cpp: In function ‘int main()’:
user.cpp:20:5: error: ‘cin’ was not declared in this scope
cin>>p;
^
user.cpp:22:9: error: ‘cout’ was not declared in this scope
cout<<1;
^
user.cpp:25:23: error: ‘NMax’ was not declared in this scope
int min=1,max=NMax,mid;
^
user.cpp:28:25: error: ‘mid’ was not declared in this scope
valoare=fct(mid);
^
user.cpp:29:28: error: ‘mid’ was not declared in this scope
if (valoare<p) min=mid+1;
^
user.cpp:30:33: error: ‘mid’ was not declared in this scope
else if (valoare>p) max=mid-1;
^
user.cpp:33:10: error: ‘ok’ was not declared in this scope
if ( ok )
^
user.cpp:35:16: error: ‘mid’ was not declared in this scope
while (mid%5) mid--;
^
user.cpp:36:9: error: ‘cout’ was not declared in this scope
cout<<mid;
^
user.cpp:36:15: error: ‘mid’ was not declared in this scope
cout<<mid;
^
user.cpp:38:10: error: ‘cout’ was not declared in this scope
else cout<<-1;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !