/ 7FOJ /

记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:7:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for (int i=0; i<s.size(); i++)
                ~^~~~~~~~~
/in/foo.cc:8:18: error: 't' was not declared in this scope
   if (s[i]=='1') t++;
                  ^
/in/foo.cc:9:10: error: 't' was not declared in this scope
  cout << t << endl;
          ^
/in/foo.cc:5:6: warning: unused variable 'tot' [-Wunused-variable]
  int tot=0;
      ^~~

信息

递交者
类型
递交
题目
P1007 「CSP2019 J」数字游戏
语言
C++
递交时间
2020-07-02 21:24:39
评测时间
2020-07-02 21:24:39
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes