fork download
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5. int output=check(4,2);
  6. printf("%d",result);
  7. }
  8. int check(int no1,int no2)
  9. {
  10. if(no1>no2)
  11. no2=no1-10;
  12. no1=no2+10;
  13. else
  14. no1=no2+20;
  15. return no1;
  16. }
Compilation error #stdin compilation error #stdout 0s 10320KB
stdin
Standard input is empty
compilation info
prog.c: In function ‘main’:
prog.c:5:20: warning: implicit declaration of function ‘check’ [-Wimplicit-function-declaration]
         int output=check(4,2);
                    ^~~~~
prog.c:6:21: error: ‘result’ undeclared (first use in this function)
         printf("%d",result);
                     ^~~~~~
prog.c:6:21: note: each undeclared identifier is reported only once for each function it appears in
prog.c:5:13: warning: unused variable ‘output’ [-Wunused-variable]
         int output=check(4,2);
             ^~~~~~
prog.c: In function ‘check’:
prog.c:13:9: error: ‘else’ without a previous ‘if’
         else
         ^~~~
stdout
Standard output is empty