0_0_29615487_9251.cpp: In function 'int max(int, int)':
0_0_29615487_9251.cpp:33:1: error: expected ';' before '}' token
}
^
0_0_29615487_9251.cpp: In function 'int max(int, Rectangle)':
0_0_29615487_9251.cpp:36:2: error: 'Rec' was not declared in this scope
Rec e=getTop(S);
^
0_0_29615487_9251.cpp:37:11: error: 'e' was not declared in this scope
int m=e.h*e.w;
^
0_0_29615487_9251.cpp:39:9: error: 'S' was not declared in this scope
pop(S);
^
0_0_29615487_9251.cpp:41:19: error: 'getTop' was not declared in this scope
while(getTop(S).h > T.h)
^
0_0_29615487_9251.cpp:41:27: error: 'struct Rectangle' has no member named 'h'
while(getTop(S).h > T.h)
^
0_0_29615487_9251.cpp:48:7: error: 'struct Rectangle' has no member named 'w'
T.w=T.w+e.w;
^
0_0_29615487_9251.cpp:48:11: error: 'struct Rectangle' has no member named 'w'
T.w=T.w+e.w;
^
0_0_29615487_9251.cpp: In function 'int main()':
0_0_29615487_9251.cpp:68:10: error: 'struct Rectangle' has no member named 'h'
if( T.h > GetTop(S).h )
^
0_0_29615487_9251.cpp:68:24: error: 'struct Rectangle' has no member named 'h'
if( T.h > GetTop(S).h )
^
0_0_29615487_9251.cpp:71:25: error: invalid conversion from 'LinkStack*' to 'int' [-fpermissive]
x = max( x , max(S,T) );
^
0_0_29615487_9251.cpp:34:5: note: initializing argument 1 of 'int max(int, Rectangle)'
int max(int x ,Rectangle T )
^
|