/ Vijos /

记录详情

Compile Error

/in/foo.c:3:1: error: expected identifier or '(' before 'for'
 for(i=1;i<=10;i++)
 ^~~
/in/foo.c:3:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<=' token
 for(i=1;i<=10;i++)
          ^~
/in/foo.c:3:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
 for(i=1;i<=10;i++)
                ^~
/in/foo.c:8:4: error: expected '=', ',', ';', 'asm' or '__attribute__' before '>>' token
 cin>>j;
    ^~
/in/foo.c:9:1: warning: data definition has no type or storage class
 n=j+30;
 ^
/in/foo.c:9:1: warning: type defaults to 'int' in declaration of 'n' [-Wimplicit-int]
/in/foo.c:9:3: error: initializer element is not constant
 n=j+30;
   ^
/in/foo.c:11:1: error: expected identifier or '(' before 'for'
 for(i=1;i<=10;i++)
 ^~~
/in/foo.c:11:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<=' token
 for(i=1;i<=10;i++)
          ^~
/in/foo.c:11:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
 for(i=1;i<=10;i++)
                ^~
/in/foo.c:14:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<<' token
 cout<<count<<endl;
     ^~
/in/foo.c:15:1: error: expected identifier or '(' before 'return'
 return 0;
 ^~~~~~

信息

递交者
类型
递交
题目
P1102 陶陶摘苹果
语言
C
递交时间
2017-06-28 10:39:37
评测时间
2017-06-28 10:39:37
评测机
分数
0
总耗时
12ms
峰值内存
2.559 MiB