/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'int main()':
/in/foo.cc:25:31: warning: iteration 109 invokes undefined behavior [-Waggressive-loop-optimizations]
   25 |         rep(i , 1 , M) two[i] = two[i - 1] * 2;
      |                        ~~~~~~~^~~~~~~~~~~~~~~~
/in/foo.cc:3:42: note: within this loop
    3 | #define rep(i , a , b) for(int i = a ; i <= b ; i ++)
      |                                          ^
/in/foo.cc:25:9: note: in expansion of macro 'rep'
   25 |         rep(i , 1 , M) two[i] = two[i - 1] * 2;
      |         ^~~
# 状态 耗时 内存占用
#1 Accepted 2ms 512.0 KiB
#2 Accepted 2ms 496.0 KiB
#3 Accepted 2ms 532.0 KiB
#4 Accepted 2ms 504.0 KiB
#5 Accepted 2ms 740.0 KiB
#6 Accepted 2ms 736.0 KiB
#7 Accepted 2ms 528.0 KiB
#8 Accepted 4ms 752.0 KiB
#9 Accepted 4ms 756.0 KiB
#10 Accepted 2ms 532.0 KiB

信息

递交者
类型
递交
题目
P1378 矩阵取数游戏
语言
C++
递交时间
2025-06-26 22:35:18
评测时间
2025-06-26 22:35:18
评测机
分数
100
总耗时
28ms
峰值内存
756.0 KiB