fork(1) download
  1. #import <Foundation/Foundation.h>
  2.  
  3. int main() {
  4. NSAutoreleasePool *pool = [NSAutoreleasePool new];
  5. NSSet *models = [NSSet setWithObjects:@"Civic", @"Accord", @"Odyssey",
  6. @"Pilot", @"Fit", nil];
  7. NSLog(@"El set tiene %li elements", [models count]);
  8. for (id item in models) {
  9. NSLog(@"%@", item);
  10. }
  11. [pool drain];
  12. return 0;
  13. }
Success #stdin #stdout #stderr 0.02s 42824KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
2016-05-01 20:21:21.250 prog[6799] El set tiene 5 elements
2016-05-01 20:21:21.251 prog[6799] Accord
2016-05-01 20:21:21.251 prog[6799] Civic
2016-05-01 20:21:21.251 prog[6799] Fit
2016-05-01 20:21:21.251 prog[6799] Pilot
2016-05-01 20:21:21.251 prog[6799] Odyssey