Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:12:17: error: 'dis' was not declared in this scope; did you mean 'div'?
   12 |                 dis[a]=b;
      |                 ^~~
      |                 div
/in/foo.cc:15:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   15 |         for(int i=0;;i<s.size();i++)
      |                      ~^~~~~~~~~
/in/foo.cc:15:23: warning: value computed is not used [-Wunused-value]
/in/foo.cc:15:32: error: expected ')' before ';' token
   15 |         for(int i=0;;i<s.size();i++)
      |            ~                   ^
      |                                )
/in/foo.cc:15:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
   15 |         for(int i=0;;i<s.size();i++)
      |         ^~~
/in/foo.cc:15:33: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
   15 |         for(int i=0;;i<s.size();i++)
      |                                 ^
/in/foo.cc:15:33: error: 'i' was not declared in this scope

信息

递交者
类型
递交
题目
P2559 小杨的字典4级T1 2023.12
语言
C++
递交时间
2025-06-07 15:19:06
评测时间
2025-06-07 15:19:06
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes