/ Vijos /

记录详情

Accepted

foo.cc: In function ‘void solve()’:
foo.cc:3:30: warning: unnecessary parentheses in declaration of ‘i’ [-Wparentheses]
    3 | #define rep(s, x, y) for (ll (s) = (x); (s) < (y); (s)++)
      |                              ^~~
foo.cc:96:5: note: in expansion of macro ‘rep’
   96 |     rep(i, 0, n) {
      |     ^~~
foo.cc:3:30: note: remove parentheses
    3 | #define rep(s, x, y) for (ll (s) = (x); (s) < (y); (s)++)
      |                              ^~~
foo.cc:96:5: note: in expansion of macro ‘rep’
   96 |     rep(i, 0, n) {
      |     ^~~
# 状态 耗时 内存占用
#1 Accepted 2ms 532.0 KiB
#2 Accepted 2ms 536.0 KiB
#3 Accepted 2ms 328.0 KiB
#4 Accepted 2ms 536.0 KiB
#5 Accepted 2ms 536.0 KiB
#6 Accepted 2ms 764.0 KiB
#7 Accepted 10ms 536.0 KiB
#8 Accepted 9ms 576.0 KiB
#9 Accepted 9ms 536.0 KiB
#10 Accepted 9ms 536.0 KiB

信息

递交者
类型
递交
题目
P1779 国王游戏
语言
C++
递交时间
2025-08-26 17:33:02
评测时间
2025-08-26 17:33:02
评测机
分数
100
总耗时
53ms
峰值内存
764.0 KiB