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