foo.cc: In function 'int main()':
foo.cc:9:10: error: 'tmq' was not declared in this scope
  int tmp=tmq(res),max=0;
          ^~~
foo.cc:9:10: note: suggested alternative: 'tmp'
  int tmp=tmq(res),max=0;
          ^~~
          tmp
foo.cc:13:20: error: 'max' was not declared in this scope
   if(a[res[i]-'0']>max)
                    ^~~
foo.cc:13:20: note: suggested alternative: 'main'
   if(a[res[i]-'0']>max)
                    ^~~
                    main
foo.cc:20:21: error: 'max' was not declared in this scope
   if(a[res[i]-'0']==max)
                     ^~~
foo.cc:20:21: note: suggested alternative: 'main'
   if(a[res[i]-'0']==max)
                     ^~~
                     main
foo.cc:8:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%s",res);
  ~~~~~^~~~~~~~~~
   
  
    自豪的采用HydroJudge(https://github.com/hydro-dev/Hydro)进行评测。