fork download
  1. int Rev_Math(const char *string)
  2. {
  3. static const char *p;
  4. p=string;
  5. switch(*p)
  6. {
  7. case '+':
  8. return Rev_Math(++p)+Rev_Math(++p);
  9. case '-':
  10. return Rev_Math(++p)-Rev_Math(++p);
  11. case '*':
  12. return Rev_Math(++p)*Rev_Math(++p);
  13. case '/':
  14. return Rev_Math(++p)/Rev_Math(++p);
  15. default:
  16. if(*p >= '0' && *p <= '9')
  17. return *p-'0';
  18. return -1;
  19. }
  20.  
  21. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
/usr/lib/gcc/i686-pc-linux-gnu/4.3.4/../../../crt1.o: In function `_start':
(.text+0x18): undefined reference to `main'
collect2: ld returned 1 exit status
stdout
Standard output is empty