记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:8:17: error: 'o' undeclared (first use in this function)
    8 |         int sum=o;
      |                 ^
/in/foo.c:8:17: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:12:17: error: 'pingfang' undeclared (first use in this function); did you mean 'pinfang'?
   12 |         chengji=pingfang*i*i;
      |                 ^~~~~~~~
      |                 pinfang
/in/foo.c:13:22: error: expected ';' before '}' token
   13 |         sum+=pingfang}
      |                      ^
      |                      ;
/in/foo.c:9:13: warning: variable 'chengji' set but not used [-Wunused-but-set-variable]
    9 |         int chengji;
      |             ^~~~~~~
/in/foo.c:7:13: warning: unused variable 'pinfang' [-Wunused-variable]
    7 |         int pinfang=1;
      |             ^~~~~~~

信息

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