记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:6:8: error: 'i' undeclared (first use in this function)
  while(i<=n){
        ^
/in/foo.c:6:8: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:8:4: error: 'sum' undeclared (first use in this function)
   {sum+=i;
    ^~~
/in/foo.c:10:3: warning: implicit declaration of function 'prontf' [-Wimplicit-function-declaration]
  }prontf("1到n之间能被3整除但不能被5整除的数之和为:"%d\n",sum);
   ^~~~~~
/in/foo.c:10:75: error: stray '\' in program
  }prontf("1到n之间能被3整除但不能被5整除的数之和为:"%d\n",sum);
                                                                           ^
/in/foo.c:10:74: error: 'd' undeclared (first use in this function)
  }prontf("1到n之间能被3整除但不能被5整除的数之和为:"%d\n",sum);
                                                                          ^
/in/foo.c:10:76: error: expected ')' before 'n'
  }prontf("1到n之间能被3整除但不能被5整除的数之和为:"%d\n",sum);
                                                                            ^
/in/foo.c:10:77: warning: missing terminating " character
  }prontf("1到n之间能被3整除但不能被5整除的数之和为:"%d\n",sum);
                                                                             ^
/in/foo.c:10:77: error: missing terminating " character
  }prontf("1到n之间能被3整除但不能被5整除的数之和为:"%d\n",sum);
                                                                             ^~~~~~~
/in/foo.c:12:4: error: expected ';' before '}' token
    }
    ^

信息

递交者
类型
自测
语言
C
递交时间
2024-12-24 10:27:25
评测时间
2024-12-24 10:27:25
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes