View Code of Problem 1

#include<stdio.h>
int main()
{
	int a, b;
	scanf_s("%d%d", &a, &b);
	int c;
	c = a + b;
	printf("%d\n", c);
	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/ccwPFnov.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