Submission #225632


Source Code Expand

#include <stdio.h>

void main()
{
	int a,b;
	scanf(&a);
	scanf(&b);
	print("%d\n",a-b);
}

Submission Info

Submission Time
Task A - 積雪深差
User takahashi
Language C (GCC 4.6.4)
Score 0
Code Size 97 Byte
Status CE

Compile Error

./Main.c: In function ‘main’:
./Main.c:6:2: warning: passing argument 1 of ‘scanf’ from incompatible pointer type [enabled by default]
/usr/include/stdio.h:452:12: note: expected ‘const char * __restrict__’ but argument is of type ‘int *’
./Main.c:6:2: warning: format not a string literal and no format arguments [-Wformat-security]
./Main.c:7:2: warning: passing argument 1 of ‘scanf’ from incompatible pointer type [enabled by default]
/usr/include/stdio.h:452:12: note: expected ‘const char * __restrict__’ but argument is of type ‘int *’
./Main.c:7:2: warning: format not a string literal and no format arguments [-Wformat-security]
./Main.c:6:7: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
./Main.c:7:7: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
/tmp/ccpoaElO.o: In function `main':
Main.c:(.text.startup+0x2c): undefined reference to `print'
collect2: ld retu...