| Problem | addition |
|---|---|
| User | yihai |
| Submission Time | 2026-01-21 16:37:10 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
addition.cpp: In function ‘int main()’:
addition.cpp:4:2: error: ‘ios_base’ has not been declared
4 | ios_base::sync_with_stdio(0);cin.tie(0);
| ^~~~~~~~
addition.cpp:4:31: error: ‘cin’ was not declared in this scope
4 | ios_base::sync_with_stdio(0);cin.tie(0);
| ^~~
addition.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 |
addition.cpp:5:8: error: ‘a’ was not declared in this scope
5 | cin>> a >>b;
| ^
addition.cpp:5:13: error: ‘b’ was not declared in this scope
5 | cin>> a >>b;
| ^
addition.cpp:6:2: error: ‘cout’ was not declared in this scope
6 | cout<< a+b;
| ^~~~
addition.cpp:6:2: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’