Borderou de evaluare (job #2913606)
Utilizator | Data | 15 iulie 2022 13:47:52 | |
---|---|---|---|
Problema | A+B | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:2:17: error: 'stf' is not a namespace-name
2 | using namespace stf;
| ^~~
main.cpp: In function 'int main()':
main.cpp:6:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
6 | cin >> a >> b;
| ^~~
| std::cin
In file included from main.cpp:1:
/usr/include/c++/10/iostream:60:18: note: 'std::cin' declared here
60 | extern istream cin; /// Linked to standard input
| ^~~
main.cpp:7:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
7 | cout << a+b;
| ^~~~
| std::cout
In file included from main.cpp:1:
/usr/include/c++/10/iostream:61:18: note: 'std::cout' declared here
61 | extern ostream cout; /// Linked to standard output
| ^~~~
main.cpp:9:1: error: expected primary-expression before ')' token
9 | )
| ^
main.cpp:9:1: error: expected '}' at end of input
main.cpp:4:1: note: to match this '{'
4 | {
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !