foo.c: In function 'way1':
foo.c:23:10: error: expected expression before ';' token
count+=;
^
foo.c: In function 'way2':
foo.c:41:2: error: expected ',' or ';' before 'for'
for(i=1;i<=x2;i++)
^~~
foo.c:41:11: warning: statement with no effect [-Wunused-value]
for(i=1;i<=x2;i++)
~^~~~
foo.c:41:19: error: expected ';' before ')' token
for(i=1;i<=x2;i++)
^
foo.c:41:19: error: expected statement before ')' token
foo.c:44:4: error: break statement not within loop or switch
break;
^~~~~
foo.c: In function 'main':
foo.c:11:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
^~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务