View Code of Problem 1

#include<stdio.h>
main(){
	int a,b;
  while(scanf("%d %d",&a,&b)!=EOF){
  	prinf("%d",a+b);
  }
}
/*
Main.c:2:1: warning: return type defaults to 'int'
 main(){
 ^
Main.c: In function 'main':
Main.c:5:4: warning: implicit declaration of function 'prinf' [-Wimplicit-function-declaration]
    prinf("%d",a+b);
    ^
/tmp/cccVVPlW.o: In function `main':
Main.c:(.text+0x1f): undefined reference to `prinf'
collect2: error: ld returned 1 exit status
*/

Double click to view unformatted code.


Back to problem 1