Problem | sumint |
---|---|
User | rococochair |
Submission Time | 2023-03-21 20:00:46 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
sumint.cpp: In function ‘int main()’:
sumint.cpp:4:10: error: ‘cin’ is not a member of ‘std’
4 | std::cin >> d;
| ^~~
sumint.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 |
sumint.cpp:6:14: error: ‘cin’ is not a member of ‘std’
6 | std::cin >> di;
| ^~~
sumint.cpp:6:14: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
sumint.cpp:9:10: error: ‘cout’ is not a member of ‘std’
9 | std::cout << sum << "\n";
| ^~~~
sumint.cpp:9:10: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?