Problem addition
User siqideng09
Submission Time 2023-11-08 09:45:13
Score 0
Max Time N/A
Max Memory N/A

Compile Error

addition.cpp: In function ‘int main()’:
addition.cpp:8:2: error: ‘cin’ was not declared in this scope
8 | cin >> a;
| ^~~
addition.cpp:2:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
1 | #include <stdio.h>
+++ |+#include <iostream>
2 |
addition.cpp:14:5: error: ‘cout’ was not declared in this scope
14 | cout << c;
| ^~~~
addition.cpp:14:5: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?