记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:5:8: warning: missing terminating " character
  scanf("%d%d, &a, &b);
        ^
/in/foo.c:5:8: error: missing terminating " character
  scanf("%d%d, &a, &b);
        ^~~~~~~~~~~~~~~
/in/foo.c:6:12: error: expected ')' before ';' token
     sum=a+b;
            ^
/in/foo.c:7:18: error: stray '\' in program
     printf(sum=%d\n", sum);
                  ^
/in/foo.c:7:20: warning: missing terminating " character
     printf(sum=%d\n", sum);
                    ^
/in/foo.c:7:20: error: missing terminating " character
     printf(sum=%d\n", sum);
                    ^~~~~~~~
/in/foo.c:6:5: warning: passing argument 1 of 'scanf' makes pointer from integer without a cast [-Wint-conversion]
     sum=a+b;
     ^~~
In file included from /usr/include/features.h:364:0,
                 from /usr/include/stdio.h:27,
                 from /in/foo.c:1:
/usr/include/stdio.h:448:12: note: expected 'const char * restrict' but argument is of type 'int'
 extern int __REDIRECT (scanf, (const char *__restrict __format, ...),
            ^
/in/foo.c:8:6: error: expected declaration or statement at end of input
      return 0;
      ^~~~~~

信息

递交者
类型
递交
题目
P1006 A+B Problem
语言
C
递交时间
2024-09-27 21:26:20
评测时间
2024-09-27 21:26:20
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes