记录详情

Compile Error

foo.c: In function ‘main’:
foo.c:7:17: error: passing argument 1 of ‘printf’ makes pointer from integer without a cast [-Wint-conversion]
    7 |         printf(a+b);
      |                ~^~
      |                 |
      |                 int
In file included from foo.c:1:
/nix/glibc-2.42-61-dev/include/stdio.h:366:43: note: expected ‘const char * restrict’ but argument is of type ‘int’
  366 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
foo.c:8:17: error: expected ‘;’ before ‘}’ token
    8 |         return 0
      |                 ^
      |                 ;
    9 | }
      | ~                

信息

递交者
类型
递交
题目
P1006 A+B Problem
语言
C
递交时间
2026-08-17 10:57:34
评测时间
2026-08-25 08:05:00
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes