/ Vijos /

记录详情

Accepted

foo.cc: In function ‘bool cmp()’:
foo.cc:39:16: warning: unused variable ‘j’ [-Wunused-variable]
   39 |         int i, j, t, c = 0;
      |                ^
foo.cc:39:22: warning: unused variable ‘c’ [-Wunused-variable]
   39 |         int i, j, t, c = 0;
      |                      ^
foo.cc: In function ‘void decc()’:
foo.cc:58:25: warning: comparison of integer expressions of different signedness: ‘std::vector<short int>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
   58 |         while (b.size() < t) b.insert(b.begin(), 0);
      |                ~~~~~~~~~^~~
foo.cc: In function ‘int main()’:
foo.cc:116:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<short int>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  116 |         for (i = 0; i < a.size(); i++) cout << a[i];
      |                     ~~^~~~~~~~~~
foo.cc:93:16: warning: unused variable ‘j’ [-Wunused-variable]
   93 |         int i, j, k, t = 0;
      |                ^
foo.cc:93:19: warning: unused variable ‘k’ [-Wunused-variable]
   93 |         int i, j, k, t = 0;
      |                   ^
foo.cc:98:13: warning: unused variable ‘l’ [-Wunused-variable]
   98 |         int l = s.length();
      |             ^
# 状态 耗时 内存占用
#1 Accepted 2ms 536.0 KiB
#2 Accepted 2ms 532.0 KiB
#3 Accepted 3ms 536.0 KiB
#4 Accepted 3ms 764.0 KiB
#5 Accepted 2ms 320.0 KiB
#6 Accepted 1ms 536.0 KiB
#7 Accepted 2ms 536.0 KiB
#8 Accepted 2ms 536.0 KiB
#9 Accepted 2ms 512.0 KiB
#10 Accepted 2ms 536.0 KiB

信息

递交者
类型
递交
题目
P1095 约瑟夫问题10E100版
语言
C++
递交时间
2025-02-27 11:38:30
评测时间
2025-02-27 11:38:30
评测机
分数
100
总耗时
27ms
峰值内存
764.0 KiB