fork download
  1. #import <Foundation/Foundation.h>
  2.  
  3. int main() {
  4. NSAutoreleasePool *pool = [NSAutoreleasePool new];
  5. enum direction {north, south = 5, west, east};
  6. int cur = south;
  7. NSLog(@"%d ", cur);
  8. NSLog(@"%d ", north);
  9. NSLog(@"%d", west);
  10. [pool drain];
  11. return 0;
  12. }
  13.  
  14.  
  15.  
Success #stdin #stdout #stderr 0.03s 42848KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
2016-05-02 11:09:15.852 prog[32453] 5 
2016-05-02 11:09:15.853 prog[32453] 0 
2016-05-02 11:09:15.853 prog[32453] 6