fork(1) download
  1. #include <stdio.h>
  2.  
  3. Int mypower (int v, int p)
  4. int v;
  5. int p;
  6. If (v> p)
  7. {
  8. Printf(“start of function mypower (%d %d)\n” v,P)
  9. Val= 1;
  10. Printf(“start of function mypower (%d %d)\n” v,P);
  11.  
  12. Return val;
  13.  
  14.  
  15. int main(void) {
  16.  
  17. int v =1; p=3, temp= 9
  18.  
  19. printf("the factorial of %d %d is %d %d ", &v, &p mypower(v, p));
  20.  
  21. return 0;
  22.  
  23.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c:3:1: error: unknown type name 'Int'
 Int mypower (int v, int p)
 ^
prog.c: In function 'mypower':
prog.c:6:1: error: expected declaration specifiers before 'If'
 If (v> p) 
 ^
prog.c:8:1: error: stray '\342' in program
 Printf(“start of function mypower (%d %d)\n” v,P)
 ^
prog.c:8:1: error: stray '\200' in program
prog.c:8:1: error: stray '\234' in program
prog.c:8:1: error: stray '\' in program
prog.c:8:1: error: stray '\342' in program
prog.c:8:1: error: stray '\200' in program
prog.c:8:1: error: stray '\235' in program
prog.c:10:1: error: stray '\342' in program
 Printf(“start of function mypower (%d %d)\n” v,P);
 ^
prog.c:10:1: error: stray '\200' in program
prog.c:10:1: error: stray '\234' in program
prog.c:10:1: error: stray '\' in program
prog.c:10:1: error: stray '\342' in program
prog.c:10:1: error: stray '\200' in program
prog.c:10:1: error: stray '\235' in program
prog.c:3:5: error: old-style parameter declarations in prototyped function definition
 Int mypower (int v, int p)
     ^
prog.c:21:17: warning: control reaches end of non-void function [-Wreturn-type]
                 return 0;
                 ^
stdout
Standard output is empty