fork download
  1. #import <objc/objc.h>
  2. #import <objc/Object.h>
  3.  
  4.  
  5. @interface TestObj : Object
  6. {
  7. int num;
  8. }
  9. - (void)foo : (int)k;
  10. @end
  11.  
  12. @implementation TestObj
  13.  
  14. - (void)foo: (int)k
  15. {
  16. printf ("\i",k);
  17.  
  18. }
  19.  
  20. int main()
  21. {
  22. id obj = [[TestObj alloc] init];
  23. int y= [obj foo:5];
  24.  
  25. return 0;
  26. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.m: In function '-[TestObj foo:]':
prog.m:16:9: warning: unknown escape sequence: '\i'
prog.m: In function 'main':
prog.m:23:11: error: void value not ignored as it ought to be
prog.m: At top level:
prog.m:26:1: warning: '@end' missing in implementation context
stdout
Standard output is empty