Problem addition
User n
Submission Time 2024-02-16 21:33:59
Score 0
Max Time N/A
Max Memory N/A

Compile Error

addition.cpp:9:10: error: stray ‘\’ in program
9 | cin >> a\n;
| ^
addition.cpp:11:10: error: stray ‘\’ in program
11 | cin >> b\n;
| ^
addition.cpp: In function ‘int main()’:
addition.cpp:7:2: error: expected initializer before ‘double’
7 | double b
| ^~~~~~
addition.cpp:9:2: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’?
9 | cin >> a\n;
| ^~~
| std::cin
In file included from addition.cpp:2:
/usr/include/c++/9/iostream:60:18: note: ‘std::cin’ declared here
60 | extern istream cin; /// Linked to standard input
| ^~~
addition.cpp:9:9: error: ‘a’ was not declared in this scope
9 | cin >> a\n;
| ^
addition.cpp:10:2: error: ‘cout’ was not declared in this scope; did you mean ‘std::cout’?
10 | cout << "Input integer b: ";
| ^~~~
| std