/ Vijos /

记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:5:9: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'int' [-Wformat=]
 scanf("%d",a);
         ^
/in/foo.c:6:9: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'int' [-Wformat=]
 scanf("%d",b);
         ^
/in/foo.c:8:1: warning: implicit declaration of function 'print' [-Wimplicit-function-declaration]
 print("%d",c);
 ^~~~~
/in/foo.c:5:1: warning: 'a' is used uninitialized in this function [-Wuninitialized]
 scanf("%d",a);
 ^~~~~~~~~~~~~
/in/foo.c:6:1: warning: 'b' is used uninitialized in this function [-Wuninitialized]
 scanf("%d",b);
 ^~~~~~~~~~~~~
/tmp/ccIFTGbu.o: In function `main':
foo.c:(.text.startup+0x37): undefined reference to `print'
collect2: error: ld returned 1 exit status

信息

递交者
类型
递交
题目
P1000 A+B Problem
语言
C
递交时间
2017-05-14 10:58:54
评测时间
2017-05-14 10:58:54
评测机
分数
0
总耗时
66ms
峰值内存
5.738 MiB