fork download
  1. #include <stdio.h>
  2.  
  3. int main(){
  4. int a,b;
  5. print("enter the value of a \n");
  6. scanf("%d",&a);
  7. printf("enter the value of b \n");
  8. scanf("%d",&b);
  9. printf("the sum %d",a+b);
  10. return 0;
  11. }
  12.  
Compilation error #stdin compilation error #stdout 0s 5572KB
stdin
 
compilation info
prog.c: In function ‘main’:
prog.c:5:1: warning: implicit declaration of function ‘print’; did you mean ‘printf’? [-Wimplicit-function-declaration]
 print("enter the value of a \n");
 ^~~~~
 printf
prog.c:6:1: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
 scanf("%d",&a);
 ^~~~~~~~~~~~~~
prog.c:8:1: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
 scanf("%d",&b);
 ^~~~~~~~~~~~~~
/usr/bin/ld: /home/0de5X2/cc1sMSvL.o: in function `main':
prog.c:(.text.startup+0x1c): undefined reference to `print'
collect2: error: ld returned 1 exit status
stdout
Standard output is empty