/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:15:9: warning: array subscript has type 'char' [-Wchar-subscripts]
   l[s[i]]++;
         ^
/in/foo.cc:19:21: error: missing template arguments before '[' token
   if(l[i]!=0 && hash[i]>maxn) maxn=l[i];
                     ^
/in/foo.cc:20:21: error: missing template arguments before '[' token
   if(l[i]!=0 && hash[i]<minn) minn=l[i];
                     ^
/in/foo.cc:31:2: warning: this 'else' clause does not guard... [-Wmisleading-indentation]
  else
  ^~~~
/in/foo.cc:33:5: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'else'
     return 0;
     ^~~~~~

信息

递交者
类型
递交
题目
P1495 笨小猴
语言
C++
递交时间
2017-11-04 21:08:21
评测时间
2017-11-04 21:08:21
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes