:11:26: error: stray '\' in program
11 | cout<<double(sum)\n<<endl;
| ^
: In function 'int main()':
:7:14: error: 'x' was not declared in this scope
7 | cin>>x;
| ^
:8:9: error: 'sum' was not declared in this scope
8 | sum+=x;
| ^~~
:10:15: error: 'sum' was not declared in this scope
10 | cout<<sum<<endl;
| ^~~