错误解释

CompileError!

编译信息

main.c: In function \xe2\x80\x98main\xe2\x80\x99:\nmain.c:7:19: error: expected \xe2\x80\x98=\xe2\x80\x99, \xe2\x80\x98,\xe2\x80\x99, \xe2\x80\x98;\xe2\x80\x99, \xe2\x80\x98asm\xe2\x80\x99 or \xe2\x80\x98__attribute__\xe2\x80\x99 before \xe2\x80\x98+=\xe2\x80\x99 token\n 7 | int sum+=i;\n | ^~\nmain.c:7:19: error: expected expression before \xe2\x80\x98+=\xe2\x80\x99 token\nmain.c:11:17: error: \xe2\x80\x98sum\xe2\x80\x99 undeclared (first use in this function)\n 11 | printf("%d",sum);\n | ^~~\nmain.c:11:17: note: each undeclared identifier is reported only once for each function it appears in\nmain.c:4:5: warning: ignoring return value of \xe2\x80\x98scanf\xe2\x80\x99 declared with attribute \xe2\x80\x98warn_unused_result\xe2\x80\x99 [-Wunused-result]\n 4 | scanf("%d",&n);\n | ^~~~~~~~~~~~~~\n