Problem sumint
User ggracekkim
Submission Time 2025-10-27 15:35:05
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sumint.cpp: In function ‘int main()’:
sumint.cpp:5:5: error: ‘cin’ was not declared in this scope
5 | cin >> d;
| ^~~
sumint.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | using namespace std;
sumint.cpp:14:5: error: ‘cout’ was not declared in this scope
14 | cout << sum;
| ^~~~
sumint.cpp:14:5: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?