记录详情

Compile Error

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)进行评测。

信息

递交者
类型
递交
题目
6-9 哪个字母用得最多
比赛
2020苏青奥赛集训营(2021-3-28课后作业)
语言
C++
递交时间
2021-03-29 20:24:39
评测时间
2021-03-29 20:24:39
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes