Borderou de evaluare (job #2621685)
Utilizator | Data | 30 mai 2020 17:10:14 | |
---|---|---|---|
Problema | A+B | 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:8:1: error: 'ifstream' was not declared in this scope
ifstream fin;
^~~~~~~~
main.cpp:8:1: note: suggested alternative:
In file included from /usr/include/c++/6/ios:38:0,
from /usr/include/c++/6/ostream:38,
from /usr/include/c++/6/iostream:39,
from main.cpp:1:
/usr/include/c++/6/iosfwd:162:34: note: 'std::ifstream'
typedef basic_ifstream<char> ifstream;
^~~~~~~~
main.cpp:9:3: error: 'ofstream' was not declared in this scope
ofstream fout;
^~~~~~~~
main.cpp:9:3: note: suggested alternative:
In file included from /usr/include/c++/6/ios:38:0,
from /usr/include/c++/6/ostream:38,
from /usr/include/c++/6/iostream:39,
from main.cpp:1:
/usr/include/c++/6/iosfwd:165:34: note: 'std::ofstream'
typedef basic_ofstream<char> ofstream;
^~~~~~~~
main.cpp:10:1: error: 'fin' was not declared in this scope
fin.open("adunare.in");
^~~
main.cpp:14:1: error: 'cout' was not declared in this scope
cout<<"a="<<a<<' '<<"b="<<b<<' '<<"c="<<a<<'+'<<b<<'='<<c<<endl;
^~~~
main.cpp:14:1: note: suggested alternative:
In file included from main.cpp:1:0:
/usr/include/c++/6/iostream:61:18: note: 'std::cout'
extern ostream cout; /// Linked to standard output
^~~~
main.cpp:14:60: error: 'endl' was not declared in this scope
cout<<"a="<<a<<' '<<"b="<<b<<' '<<"c="<<a<<'+'<<b<<'='<<c<<endl;
^~~~
main.cpp:14:60: note: suggested alternative:
In file included from /usr/include/c++/6/iostream:39:0,
from main.cpp:1:
/usr/include/c++/6/ostream:590:5: note: 'std::endl'
endl(basic_ostream<_CharT, _Traits>& __os)
^~~~
main.cpp:16:1: error: 'fout' was not declared in this scope
fout.open("adunare.out");
^~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !