Borderou de evaluare (job #1415464)
Utilizator | Data | 4 aprilie 2015 17:50:03 | |
---|---|---|---|
Problema | Algoritmul lui Euclid | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:12:5: error: ‘ifstream’ was not declared in this scope
ifstream f("euclid2.in");
^
user.cpp:12:5: note: suggested alternative:
In file included from /usr/include/c++/4.8/ios:38:0,
from /usr/include/c++/4.8/ostream:38,
from /usr/include/c++/4.8/iostream:39,
from user.cpp:1:
/usr/include/c++/4.8/iosfwd:157:34: note: ‘std::ifstream’
typedef basic_ifstream<char> ifstream;
^
user.cpp:12:14: error: expected ‘;’ before ‘f’
ifstream f("euclid2.in");
^
user.cpp:13:5: error: ‘f’ was not declared in this scope
f>>t;
^
user.cpp:14:5: error: ‘ofstream’ was not declared in this scope
ofstream g("euclid2.out");
^
user.cpp:14:5: note: suggested alternative:
In file included from /usr/include/c++/4.8/ios:38:0,
from /usr/include/c++/4.8/ostream:38,
from /usr/include/c++/4.8/iostream:39,
from user.cpp:1:
/usr/include/c++/4.8/iosfwd:160:34: note: ‘std::ofstream’
typedef basic_ofstream<char> ofstream;
^
user.cpp:14:14: error: expected ‘;’ before ‘g’
ofstream g("euclid2.out");
^
user.cpp:15:10: warning: statement has no effect [-Wunused-value]
for(t;t;t--){
^
user.cpp:17:9: error: ‘g’ was not declared in this scope
g<<gcd(a,b)<<"\n";
^
user.cpp:19:5: error: ‘g’ was not declared in this scope
g.close();
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !