记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:5:2: error: 'intf' undeclared (first use in this function)
  intf=122,intc;
  ^~~~
/in/foo.c:5:2: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:5:11: error: 'intc' undeclared (first use in this function)
  intf=122,intc;
           ^~~~
/in/foo.c:5:10: warning: left-hand operand of comma expression has no effect [-Wunused-value]
  intf=122,intc;
          ^
/in/foo.c:6:8: error: 'd' undeclared (first use in this function)
  scanf(d%,&f);
        ^
/in/foo.c:6:10: error: expected expression before ',' token
  scanf(d%,&f);
          ^
/in/foo.c:6:12: error: 'f' undeclared (first use in this function)
  scanf(d%,&f);
            ^
/in/foo.c:7:11: warning: left-hand operand of comma expression has no effect [-Wunused-value]
  for(f=122,f<=1000, )
           ^
/in/foo.c:7:21: error: expected expression before ')' token
  for(f=122,f<=1000, )
                     ^
/in/foo.c:7:19: warning: left-hand operand of comma expression has no effect [-Wunused-value]
  for(f=122,f<=1000, )
                   ^
/in/foo.c:7:21: error: expected expression before ')' token
  for(f=122,f<=1000, )
                     ^
/in/foo.c:8:3: warning: implicit declaration of function 'folat' [-Wimplicit-function-declaration]
  {folat(c=9/5(f-32)
   ^~~~~
/in/foo.c:8:9: error: 'c' undeclared (first use in this function)
  {folat(c=9/5(f-32)
         ^
/in/foo.c:8:13: error: called object is not a function or function pointer
  {folat(c=9/5(f-32)
             ^
/in/foo.c:9:6: error: expected ')' before '}' token
      }
      ^
/in/foo.c:9:6: error: expected ';' before '}' token
/in/foo.c:10:14: error: expected expression before ',' token
  printf(4.2f%,&c)
              ^

信息

递交者
类型
递交
比赛
2024级10点
语言
C
递交时间
2024-12-24 10:20:11
评测时间
2024-12-24 10:20:11
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes