foo.cc:19:3: error: stray '#' in program
} #include <iostream>
^
foo.cc: In function 'int main()':
foo.cc:11:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
if(x=y)
~^~
foo.cc: At global scope:
foo.cc:19:4: error: 'include' does not name a type
} #include <iostream>
^~~~~~~
foo.cc: In function 'int main()':
foo.cc:21:5: error: redefinition of 'int main()'
int main()
^~~~
foo.cc:3:5: note: 'int main()' previously defined here
int main()
^~~~
foo.cc:29:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
if(x=y)
~^~
[Hydro](https://hydro.ac)提供评测服务