编号 题目 状态 分数 总时间 内存 代码 / 答案文件 提交者 提交时间
#88210 #113. 送分 A + B Compile Error 0 0 ms 0 K C++ / 96 B whoami 2023-05-08 10:39:16
显示原始代码
#include <stdio.h>
int main() {
    int a, b;
    scanf("%d %d", &a, &b);
    printf("%d", a + b)
}

编译信息

/sandbox/1/a.cpp: In function 'int main()':
/sandbox/1/a.cpp:5:21: error: expected ';' before '}' token
    5 |     printf("%d",a+b)
      |                     ^
      |                     ;
    6 | }
      | ~                    
/sandbox/1/a.cpp:4:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
    4 |     scanf("%d %d",&a,&b);
      |     ~~~~~^~~~~~~~~~~~~~~