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