记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:22:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   22 |     for (int i = 0; i < input.length() - 1; i++)
      |                     ~~^~~~~~~~~~~~~~~~~~~~
foo.cc:37:5: error: 'vector' was not declared in this scope
   37 |     vector<string> output;
      |     ^~~~~~
foo.cc:5:1: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
    4 | #include <algorithm>
  +++ |+#include <vector>
    5 | 
foo.cc:37:18: error: expected primary-expression before '>' token
   37 |     vector<string> output;
      |                  ^
foo.cc:37:20: error: 'output' was not declared in this scope
   37 |     vector<string> output;
      |                    ^~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
自测
题目
6-10 哪个字母对用得最多
语言
C++
递交时间
2023-12-05 15:19:40
评测时间
2023-12-05 15:19:40
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes