Problem sumint
User ZacharyTan2010
Submission Time 2024-02-05 16:30:47
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sumint.cpp: In function ‘int main()’:
sumint.cpp:5:24: error: expected ‘)’ before ‘;’ token
5 | for(int i=0;i<d;i++;){cin>>a;s+=a}
| ~ ^
| )
sumint.cpp:5:25: error: expected primary-expression before ‘)’ token
5 | for(int i=0;i<d;i++;){cin>>a;s+=a}
| ^
sumint.cpp:6:12: error: expected ‘;’ before ‘}’ token
6 | cout<<s}
| ^
| ;