运行 ID: 19955

Main.cc:3:17: error: ‘INT_MAX’ was not declared in this scope
 int n,a[20],ans=INT_MAX,t=0;
                 ^~~~~~~
Main.cc:3:17: note: suggested alternative: ‘INT8_MAX’
 int n,a[20],ans=INT_MAX,t=0;
                 ^~~~~~~
                 INT8_MAX
Main.cc: In function ‘int main()’:
Main.cc:26:35: error: ‘t’ was not declared in this scope
  for(int i=1; i<=n; i++)cin>>a[i],t+=abs(a[i]/10-a[i]%10);
                                   ^
Main.cc:27:39: error: ‘t’ was not declared in this scope
  for(int i=1; i<=n; i++)f[i]=1,search(t,i,1),f[i]=0;
                                       ^