Problem sumint
User adhwa91802
Submission Time 2023-09-28 11:59:47
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sumint.cpp:1:17: error: ‘atd’ is not a namespace-name
1 | using namespace atd;
| ^~~
sumint.cpp: In function ‘int main()’:
sumint.cpp:5:2: error: ‘cin’ was not declared in this scope
5 | cin>>n;
| ^~~
sumint.cpp:9:8: error: lvalue required as left operand of assignment
9 | for(1=0; i<10; i++)
| ^
sumint.cpp:9:11: error: ‘i’ was not declared in this scope
9 | for(1=0; i<10; i++)
| ^
sumint.cpp:9:20: error: expected statement at end of input
9 | for(1=0; i<10; i++)
| ^
sumint.cpp:9:20: error: expected ‘}’ at end of input
sumint.cpp:3:11: note: to match this ‘{’
3 | int main(){
| ^