Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
93072 Jason [在线测评解答教程] A+B Problem C Compile Error 0 MS 0 KB 124 2024-10-07 20:29:59

Tests(0/0):


Code:

#include<stdio.h> using namespace std; int main() { int a,b; scanf("%d %d",&a,&b); printf("%d",a+b); return 0; }


Run Info:

Main.c:2:1: error: unknown type name 'using'
 using namespace std;
 ^
Main.c:2:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'
 using namespace std;
                 ^
Main.c: In function 'main':
Main.c:6:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d %d",&a,&b);
  ^