记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:5:8: warning: multi-character character constant [-Wmultichar]
    5 |  scanf('%f',f);
      |        ^~~~
/in/foo.c:5:8: warning: passing argument 1 of 'scanf' makes pointer from integer without a cast [-Wint-conversion]
    5 |  scanf('%f',f);
      |        ^~~~
      |        |
      |        int
In file included from /in/foo.c:1:
/usr/include/stdio.h:421:42: note: expected 'const char * restrict' but argument is of type 'int'
  421 | extern int scanf (const char *__restrict __format, ...) __wur;
      |                   ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
/in/foo.c:6:6: error: called object is not a function or function pointer
    6 |  c=5/9(f-32);
      |      ^
/in/foo.c:7:17: warning: multi-character character constant [-Wmultichar]
    7 |          printf('%.2f',c);
      |                 ^~~~~~
/in/foo.c:7:17: warning: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
    7 |          printf('%.2f',c);
      |                 ^~~~~~
      |                 |
      |                 int
/usr/include/stdio.h:356:43: note: expected 'const char * restrict' but argument is of type 'int'
  356 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
/in/foo.c:8:10: error: expected declaration or statement at end of input
    8 |          return 0;
      |          ^~~~~~

信息

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