fork download
  1. #include <stdio.h>
  2. main()
  3. {
  4. int i, j, k, max;
  5. scanf("%d",&i);
  6. scanf("%d",&j);
  7. scanf("%d",&k);
  8. if(i > j)
  9. max = i;
  10. else
  11. max = j;
  12. if(k > max)
  13. max = k
  14. printf("%d\n", max);
  15. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
4
9
5
compilation info
prog.c:2:1: warning: return type defaults to 'int' [-Wimplicit-int]
 main()
 ^
prog.c: In function 'main':
prog.c:14:3: error: expected ';' before 'printf'
   printf("%d\n", max);
   ^
stdout
Standard output is empty