记录详情

Compile Error

foo.c: In function ‘main’:
foo.c:6:5: error: too few arguments to function ‘scanf’
    6 |     scanf();
      |     ^~~~~
In file included from /nix/glibc-2.39-52-dev/include/features.h:503,
                 from /nix/glibc-2.39-52-dev/include/bits/libc-header-start.h:33,
                 from /nix/glibc-2.39-52-dev/include/stdio.h:28,
                 from foo.c:1:
/nix/glibc-2.39-52-dev/include/stdio.h:466:12: note: declared here
  466 | extern int __REDIRECT (scanf, (const char *__restrict __format, ...),
      |            ^~~~~~~~~~
foo.c:17:5: error: ‘if(b’ undeclared (first use in this function)
   17 |     if(b<c){
      |     ^~~~~
foo.c:17:5: note: each undeclared identifier is reported only once for each function it appears in
foo.c:17:11: error: ‘c)’ undeclared (first use in this function)
   17 |     if(b<c){
      |           ^~~
foo.c:17:14: error: expected ‘;’ before ‘{’ token
   17 |     if(b<c){
      |              ^
      |              ;

信息

递交者
类型
递交
题目
A1-1 分支结构练习:三数排序
比赛
南师大(含泰州学院)2024年新生赛(第一场)
语言
C
递交时间
2024-08-19 14:21:26
评测时间
2024-08-19 14:21:26
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes