Borderou de evaluare (job #2312214)
Utilizator | Data | 4 ianuarie 2019 14:32:00 | |
---|---|---|---|
Problema | CMMDC | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:16:5: error: 'ifstream' was not declared in this scope
ifstream f("cmmdc.in");
^~~~~~~~
main.cpp:16:5: note: suggested alternative:
In file included from /usr/include/c++/6/ios:38:0,
from /usr/include/c++/6/istream:38,
from /usr/include/c++/6/fstream:38,
from main.cpp:1:
/usr/include/c++/6/iosfwd:162:34: note: 'std::ifstream'
typedef basic_ifstream<char> ifstream;
^~~~~~~~
main.cpp:17:5: error: 'ofstream' was not declared in this scope
ofstream g("cmmdc.out");
^~~~~~~~
main.cpp:17:5: note: suggested alternative:
In file included from /usr/include/c++/6/ios:38:0,
from /usr/include/c++/6/istream:38,
from /usr/include/c++/6/fstream:38,
from main.cpp:1:
/usr/include/c++/6/iosfwd:165:34: note: 'std::ofstream'
typedef basic_ofstream<char> ofstream;
^~~~~~~~
main.cpp:18:5: error: 'f' was not declared in this scope
f>>a>>b;
^
main.cpp:19:20: error: 'g' was not declared in this scope
if(gcd(a,b)==1)g<<0;
^
main.cpp:20:10: error: 'g' was not declared in this scope
else g<<gcd(a,b);
^
main.cpp:21:15: error: 'g' was not declared in this scope
f.close(),g.close();
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !