/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:24:10: error: 'vc' was not declared in this scope
    tmp = vc.at(i);
          ^~
/in/foo.cc:33:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for (int i = 0; i < str.size(), i++){
                  ~~^~~~~~~~~~~~
/in/foo.cc:33:20: warning: value computed is not used [-Wunused-value]
/in/foo.cc:33:37: error: expected ';' before ')' token
  for (int i = 0; i < str.size(), i++){
                                     ^
/in/foo.cc:34:17: warning: comparison with string literal results in unspecified behavior [-Waddress]
   if (str[i] == "1"){
                 ^~~
/in/foo.cc:34:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]

信息

递交者
类型
递交
题目
P1848 记数问题
语言
C++
递交时间
2024-08-22 15:21:18
评测时间
2024-08-22 15:21:18
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes