/ DIO /

记录详情

Compile Error

/in/foo.c:1:9: error: #include expects "FILENAME" or <FILENAME>
 #include'stdio.h'
         ^~~~~~~~~
/in/foo.c:2:1: error: unknown type name 'using'
 using namespace std;
 ^~~~~
/in/foo.c:2:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'
 using namespace std;
                 ^~~
/in/foo.c:3:6: warning: return type of 'main' is not 'int' [-Wmain]
 void main(){
      ^~~~
/in/foo.c: In function 'main':
/in/foo.c:5:1: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
 scanf("%d%d",&a&b);
 ^~~~~
/in/foo.c:5:1: warning: incompatible implicit declaration of built-in function 'scanf'
/in/foo.c:5:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
/in/foo.c:5:16: error: invalid operands to binary & (have 'int *' and 'int')
 scanf("%d%d",&a&b);
              ~~^
/in/foo.c:6:1: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
 printf("%d\n",a+b);
 ^~~~~~
/in/foo.c:6:1: warning: incompatible implicit declaration of built-in function 'printf'
/in/foo.c:6:1: note: include '<stdio.h>' or provide a declaration of 'printf'

信息

递交者
类型
递交
题目
P1000 刘宝宝与老母鸡问题
语言
C
递交时间
2018-10-14 18:34:06
评测时间
2018-10-14 18:34:06
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes