Borderou de evaluare (job #2540345)
Utilizator | Data | 7 februarie 2020 01:23:25 | |
---|---|---|---|
Problema | A+B | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:3:1: error: 'use' does not name a type
use namespace std;
^~~
main.cpp: In function 'int main()':
main.cpp:9:2: error: 'ifstream' was not declared in this scope
ifstream f(adunare.in);
^~~~~~~~
main.cpp:9:2: 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:10:11: error: expected ';' before 'g'
ifstream g(adunare.out);
^
main.cpp:11:2: error: 'f' was not declared in this scope
f >> a;
^
main.cpp:13:2: error: 'g' was not declared in this scope
g << a + b;
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !