Borderou de evaluare (job #1138929)
Utilizator | Data | 10 martie 2014 18:55:26 | |
---|---|---|---|
Problema | CMMDC | Status | done |
Runda | moisilking | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int cm(int, int)’:
user.cpp:9:5: error: ‘fout’ was not declared in this scope
fout<<r;
^
user.cpp:10:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
user.cpp: In function ‘int main()’:
user.cpp:13:5: error: ‘ifstream’ was not declared in this scope
ifstream fin("cmmdc.in");
^
user.cpp:13:5: note: suggested alternative:
In file included from /usr/local/include/c++/4.8.0/ios:38:0,
from /usr/local/include/c++/4.8.0/istream:38,
from /usr/local/include/c++/4.8.0/fstream:38,
from user.cpp:1:
/usr/local/include/c++/4.8.0/iosfwd:157:34: note: ‘std::ifstream’
typedef basic_ifstream<char> ifstream;
^
user.cpp:13:14: error: expected ‘;’ before ‘fin’
ifstream fin("cmmdc.in");
^
user.cpp:14:5: error: ‘ofstream’ was not declared in this scope
ofstream fout("cmmdc.out");
^
user.cpp:14:5: note: suggested alternative:
In file included from /usr/local/include/c++/4.8.0/ios:38:0,
from /usr/local/include/c++/4.8.0/istream:38,
from /usr/local/include/c++/4.8.0/fstream:38,
from user.cpp:1:
/usr/local/include/c++/4.8.0/iosfwd:160:34: note: ‘std::ofstream’
typedef basic_ofstream<char> ofstream;
^
user.cpp:14:14: error: expected ‘;’ before ‘fout’
ofstream fout("cmmdc.out");
^
user.cpp:16:5: error: ‘fin’ was not declared in this scope
fin>>a>>b;
^
user.cpp:17:14: error: ‘cmmdc’ was not declared in this scope
cmmdc(a,b);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !