记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:4:8: error: expected identifier or '(' before 'int'
    4 | {int n,int i;
      |        ^~~
/in/foo.c:5:8: warning: too many arguments for format [-Wformat-extra-args]
    5 |  scanf("%d",&n,n);
      |        ^~~~
/in/foo.c: In function 'primer':
/in/foo.c:6:6: warning: type of 'n' defaults to 'int' [-Wimplicit-int]
    6 |  int primer(n)
      |      ^~~~~~
/in/foo.c:8:7: error: 'i' undeclared (first use in this function)
    8 |   for(i=2,i<n,i++)
      |       ^
/in/foo.c:8:7: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:8:10: warning: left-hand operand of comma expression has no effect [-Wunused-value]
    8 |   for(i=2,i<n,i++)
      |          ^
/in/foo.c:8:14: warning: left-hand operand of comma expression has no effect [-Wunused-value]
    8 |   for(i=2,i<n,i++)
      |              ^
/in/foo.c:8:18: error: expected ';' before ')' token
    8 |   for(i=2,i<n,i++)
      |                  ^
      |                  ;
/in/foo.c:8:18: error: expected expression before ')' token
/in/foo.c:11:4: error: 'retern' undeclared (first use in this function)
   11 |    retern 0;
      |    ^~~~~~
/in/foo.c:11:10: error: expected ';' before numeric constant
   11 |    retern 0;
      |          ^~
      |          ;
/in/foo.c: At top level:
/in/foo.c:6:6: warning: 'primer' defined but not used [-Wunused-function]
    6 |  int primer(n)
      |      ^~~~~~

信息

递交者
类型
自测
语言
C
递交时间
2025-12-06 15:04:09
评测时间
2025-12-06 15:04:09
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes