Run id: 133491

Main.cc:4:15: error: 'b' has not been declared
 int top(int a,b)
               ^
Main.cc: In function 'int top(int, int)':
Main.cc:7:23: error: 'b' was not declared in this scope
  for(int i=2;i<=max(a,b);i++)
                       ^
Main.cc:7:24: error: 'max' was not declared in this scope
  for(int i=2;i<=max(a,b);i++)
                        ^
Main.cc: In function 'int main()':
Main.cc:19:21: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d%d",&a,&b);
                     ^