foo.cc:7:13: error: stray '\357' in program
cout<<x*(x+2)<<endl;
^
foo.cc:7:14: error: stray '\274' in program
cout<<x*(x+2)<<endl;
^
foo.cc:7:15: error: stray '\211' in program
cout<<x*(x+2)<<endl;
^
foo.cc: In function 'int main()':
foo.cc:7:16: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
cout<<x*(x+2)<<endl;
~~~~~~^~~~~~
foo.cc:7:11: warning: suggest parentheses around '+' inside '<<' [-Wparentheses]
cout<<x*(x+2)<<endl;
~^~
foo.cc:7:22: error: expected ')' before ';' token
cout<<x*(x+2)<<endl;
^
[Hydro](https://hydro.ac)提供评测服务