记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:7:16: warning: right-hand operand of comma expression has no effect [-Wunused-value]
    7 |         for(i=2,i<=n,i++){
      |                ^
/in/foo.c:7:25: error: expected ';' before ')' token
    7 |         for(i=2,i<=n,i++){
      |                         ^
      |                         ;
/in/foo.c:7:25: error: expected expression before ')' token
/in/foo.c:9:17: error: 'J' undeclared (first use in this function)
    9 |     for(j=1,j<i,J+=+){
      |                 ^
/in/foo.c:9:17: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:9:21: error: expected expression before ')' token
    9 |     for(j=1,j<i,J+=+){
      |                     ^
/in/foo.c:9:12: warning: right-hand operand of comma expression has no effect [-Wunused-value]
    9 |     for(j=1,j<i,J+=+){
      |            ^
/in/foo.c:9:21: error: expected expression before ')' token
    9 |     for(j=1,j<i,J+=+){
      |                     ^
/in/foo.c:10:17: error: 'if\U0000ff08i' undeclared (first use in this function)
   10 |                 if(i%j==0){
      |                 ^~~~~
/in/foo.c:10:26: error: invalid suffix ")" on integer constant
   10 |                 if(i%j==0){
      |                          ^~~
/in/foo.c:10:29: error: expected ';' before '{' token
   10 |                 if(i%j==0){
      |                             ^
      |                             ;
/in/foo.c:15:34: warning: format '%d' expects a matching 'int' argument [-Wformat=]
   15 |                         printf("%d\n,i");
      |                                 ~^
      |                                  |
      |                                  int

信息

递交者
类型
自测
语言
C
递交时间
2025-11-15 14:23:23
评测时间
2025-11-15 14:23:24
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes