fork download
  1. #import <Cocoa/Cocoa.h>
  2. @interface theClass:NSObject{
  3. int pp = 52;
  4. int ap = 72;
  5. }
  6. -(void) coco:(int) lauda;
  7. -(void) zoco;
  8. @end
  9. @implementation theClass
  10. {
  11. -(void) coco{
  12. NSLog(@"First implementation %i", p)
  13. }
  14. @end
  15. int main(int argc, const char * argv[]){
  16. int p = 20;
  17. //NSAutoreleasePool * pool = [[NSAuoreleasepool alloc]init];
  18. NSLog(@"This is my favorite number %i", p);
  19. //[pool drain];
  20. return 0;
  21. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.m:3:8: error: expected ':', ',', ';', '}' or '__attribute__' before '=' token
prog.m:4:8: error: expected ':', ',', ';', '}' or '__attribute__' before '=' token
prog.m:11:1: error: expected specifier-qualifier-list before '-' token
prog.m:21:1: warning: '@end' missing in implementation context [enabled by default]
prog.m:21:1: warning: incomplete implementation of class 'theClass' [enabled by default]
prog.m:21:1: warning: method definition for '-zoco' not found [enabled by default]
prog.m:21:1: warning: method definition for '-coco:' not found [enabled by default]
stdout
Standard output is empty