View Code of Problem 1

#include<stdio.h>
int main()
{
	int A, B;
	scanf_s("%d %d", &A, &B);
	printf("%d", A + B);
	getchar();
	return 0;
}
/*
Main.c: In function 'main':
Main.c:5:2: warning: implicit declaration of function 'scanf_s' [-Wimplicit-function-declaration]
  scanf_s("%d %d", &A, &B);
  ^
/tmp/ccYJcVCQ.o: In function `main':
Main.c:(.text+0x1e): undefined reference to `scanf_s'
collect2: error: ld returned 1 exit status
*/

Double click to view unformatted code.


Back to problem 1