Borderou de evaluare (job #1852982)
Utilizator | Data | 21 ianuarie 2017 12:28:27 | |
---|---|---|---|
Problema | Numar2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘long int f(long int)’:
user.cpp:16:7: error: ‘cout’ was not declared in this scope
cout<<"upsi";
^
user.cpp: At global scope:
user.cpp:59:1: error: ‘ifstream’ does not name a type
ifstream fi("numar2.in");
^
user.cpp:60:1: error: ‘ofstream’ does not name a type
ofstream fout("numar2.out");
^
user.cpp:63:11: error: ‘::main’ must return ‘int’
void main()
^
user.cpp: In function ‘int main()’:
user.cpp:64:3: error: ‘cout’ was not declared in this scope
{ cout<<endl;
^
user.cpp:64:9: error: ‘endl’ was not declared in this scope
{ cout<<endl;
^
user.cpp:64:9: note: suggested alternative:
In file included from /usr/include/c++/4.8/istream:39:0,
from /usr/include/c++/4.8/fstream:38,
from user.cpp:2:
/usr/include/c++/4.8/ostream:564:5: note: ‘std::endl’
endl(basic_ostream<_CharT, _Traits>& __os)
^
user.cpp:65:3: error: ‘fi’ was not declared in this scope
fi>>n>>m;
^
user.cpp:95:4: error: ‘fout’ was not declared in this scope
{ fout<<k<<endl;
^
user.cpp:96:4: error: return-statement with no value, in function returning ‘int’ [-fpermissive]
return;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !