fork download
  1. #include <stdio.h>
  2. main ()
  3. {
  4. int a, b, c;
  5. printf("Введите два целых числа\n");
  6. scanf("%d%d" , &a, &b);
  7. c = a + b;
  8. printf("%d+%d=%d" ,a , b , c);
  9. getch();
  10. return 0;
  11. }
  12.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c:2:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
 main ()
 ^~~~
prog.c: In function ‘main’:
prog.c:9:2: warning: implicit declaration of function ‘getch’; did you mean ‘getc’? [-Wimplicit-function-declaration]
  getch();
  ^~~~~
  getc
prog.c:6:2: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d%d" , &a, &b);
  ^~~~~~~~~~~~~~~~~~~~~~
/usr/bin/ld: /home/yWTidI/cccUldzw.o: in function `main':
prog.c:(.text.startup+0x5c): undefined reference to `getch'
collect2: error: ld returned 1 exit status
stdout
Standard output is empty