Borderou de evaluare (job #953425)
Utilizator | Data | 26 mai 2013 01:44:28 | |
---|---|---|---|
Problema | Algoritmul lui Euclid | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:14:34: warning: multi-character character constant [-Wmultichar]
while(n){f>>a>>b;g<<euclid(a,b)<<'/n';n--;}
^
user.cpp:3:1: error: ‘ifstream’ does not name a type
ifstream f("euclid2.in");
^
user.cpp:4:1: error: ‘ofstream’ does not name a type
ofstream g("euclid2.out");
^
user.cpp:5:1: error: ‘f’ does not name a type
f>>n;
^
user.cpp: In function ‘int main()’:
user.cpp:14:10: error: ‘f’ was not declared in this scope
while(n){f>>a>>b;g<<euclid(a,b)<<'/n';n--;}
^
user.cpp:14:18: error: ‘g’ was not declared in this scope
while(n){f>>a>>b;g<<euclid(a,b)<<'/n';n--;}
^
user.cpp:15:1: error: ‘f’ was not declared in this scope
f.close();g.close();
^
user.cpp:15:11: error: ‘g’ was not declared in this scope
f.close();g.close();
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !