Problem sumint
User jane07
Submission Time 2024-07-08 14:10:49
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sumint.cpp: In function ‘int main()’:
sumint.cpp:4:12: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’?
4 | int d; cin >> d;
| ^~~
| std::cin
In file included from sumint.cpp:1:
/usr/include/c++/9/iostream:60:18: note: ‘std::cin’ declared here
60 | extern istream cin; /// Linked to standard input
| ^~~
sumint.cpp:9:14: error: expected initializer before ‘<<’ token
9 | int cout << sum
| ^~