Problem sumint
User amandatan
Submission Time 2024-01-29 16:31:22
Score 0
Max Time N/A
Max Memory N/A

Compile Error

cc1plus: error: ‘::main’ must return ‘int’
sumint.cpp: In function ‘int main()’:
sumint.cpp:6:6: error: redeclaration of ‘short int d’
6 | int d = (1 <= d <= 10000)
| ^
sumint.cpp:5:6: note: ‘short int d’ previously declared here
5 | int d; cin >> d;
| ^