Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:9:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(int i=0;i<s.size()-1;i++)
                 ~^~~~~~~~~~~
/in/foo.cc:10:13: error: 'a' was not declared in this scope
         cnt[a[i]]++;
             ^
/in/foo.cc:9:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
     for(int i=0;i<s.size()-1;i++)
     ^~~
/in/foo.cc:11:3: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
   for(int i=97;i<123;i++)
   ^~~

信息

递交者
类型
递交
语言
C++
递交时间
2024-05-01 08:06:52
评测时间
2024-05-01 08:06:52
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes