代码确实无法通过编译$ cat main.c
%include<stdio.h>
int main()
int i,j;
for(i = 0;i < 10 ;i++)
{
for(j = 0;j < 10; j++)
{
if(j == 3)
{
break;
}
}
printf("i = %d,j = %d\n",i ,j);
return 0;
}
$ gcc-debug -o main main.c
main.c:1:1: error: expected identifier or ‘(’ before ‘%’ token
1 | %include<stdio.h>
| ^
main.c:6:1: error: expected identifier or ‘(’ before ‘for’
6 | for(i = 0;i < 10 ;i++)
| ^~~
main.c:6:13: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘<’ token
6 | for(i = 0;i < 10 ;i++)
| ^
main.c:6:20: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘++’ token
6 | for(i = 0;i < 10 ;i++)
| ^~
$
|