Run Code  | API  | Code Wall  | Users  | Misc  | Feedback  | Login  | Theme  | Privacy  | Patreon 

abc

Language: Layout:
+ ] Compiler args + ] Show input
Compilation time: 0.13 sec, absolute service time: 0,21 sec 
edit mode |  history  | discussion
Error(s):
source_file.m: In function ‘-[rectangle setbase:]’:
source_file.m:21:5: error: ‘width’ undeclared (first use in this function)
     width=w;
     ^
source_file.m:21:5: note: each undeclared identifier is reported only once for each function it appears in
source_file.m:21:11: error: ‘w’ undeclared (first use in this function)
     width=w;
           ^
source_file.m: In function ‘-[rectangle getArea]’:
source_file.m:25:16: error: ‘l’ undeclared (first use in this function)
     return 1/2*l*b;
                ^
source_file.m:25:18: error: ‘b’ undeclared (first use in this function)
     return 1/2*l*b;
                  ^
source_file.m: At top level:
source_file.m:27:1: warning: incomplete implementation of class ‘rectangle’
 @end
 ^
source_file.m:27:1: warning: method definition for ‘+getPi’ not found
source_file.m:27:1: warning: incomplete implementation of class ‘rectangle’
source_file.m:27:1: warning: method definition for ‘-setlength:’ not found
source_file.m:30:1: error: cannot find interface declaration for ‘Circle’, superclass of ‘Cylinder’
 {
 ^
source_file.m:48:1: warning: incomplete implementation of class ‘Cylinder’
 @end
 ^
source_file.m:48:1: warning: method definition for ‘-getArea’ not found
source_file.m: In function ‘main’:
source_file.m:54:5: error: unknown type name ‘Circle’
     Circle *c1 = [[Circle alloc]init];
     ^
source_file.m:54:20: error: ‘Circle’ undeclared (first use in this function)
     Circle *c1 = [[Circle alloc]init];
                    ^
source_file.m:55:5: warning: invalid receiver type ‘int *’
     [c1 setRadius:3.5];    
     ^
source_file.m:55:5: warning: no ‘-setRadius:’ method found
source_file.m:55:5: warning: (Messages without a matching method signature
source_file.m:55:5: warning: will be assumed to return ‘id’ and accept
source_file.m:55:5: warning: ‘...’ as arguments.)
source_file.m:56:5: warning: invalid receiver type ‘int *’
     NSLog (@"Area : %lf",[c1 getArea]);
     ^
source_file.m:58:5: warning: ‘Cylinder’ may not respond to ‘+alloc’
     Cylinder *cy1 = [[Cylinder alloc]init];
     ^
source_file.m: In function ‘-[rectangle getArea]’:
source_file.m:26:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^