/ Vijos /

记录详情

Runtime Error

foo.cc: In function 'void getTwo()':
foo.cc:16:12: warning: iteration 204 invokes undefined behavior [-Waggressive-loop-optimizations]
   16 | two[i + 1] = two[i] / 10;
      | ~~~~~~~~~~~^~~~~~~~~~~~~
foo.cc:14:15: note: within this loop
   14 | for (i = 0; i < size; i++){
      |               ^
foo.cc: In function 'void mul(int)':
foo.cc:35:11: warning: iteration 204 invokes undefined behavior [-Waggressive-loop-optimizations]
   35 | mu[i + 1] = mu[i] / 10;
      | ~~~~~~~~~~^~~~~~~~~~~~
foo.cc:33:15: note: within this loop
   33 | for (i = 0; i < size; i++){
      |               ^
foo.cc: In function 'int main()':
foo.cc:82:16: warning: 'a' is used uninitialized [-Wuninitialized]
   82 | for (i = 0; a[i]; i++);
      |             ~~~^
foo.cc:80:6: note: 'a' declared here
   80 | char a[205];
      |      ^
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Runtime Error Segmentation fault 5ms 412.0 KiB
#2 Runtime Error Segmentation fault 5ms 412.0 KiB
#3 Runtime Error Segmentation fault 5ms 460.0 KiB
#4 Runtime Error Segmentation fault 3ms 412.0 KiB
#5 Runtime Error Segmentation fault 5ms 412.0 KiB
#6 Runtime Error Segmentation fault 2ms 412.0 KiB
#7 Runtime Error Segmentation fault 3ms 412.0 KiB
#8 Runtime Error Segmentation fault 4ms 412.0 KiB
#9 Runtime Error Segmentation fault 3ms 412.0 KiB
#10 Runtime Error Segmentation fault 4ms 412.0 KiB

信息

递交者
类型
递交
题目
P1447 开关灯泡
语言
C++
递交时间
2023-07-31 10:48:21
评测时间
2023-07-31 10:48:21
评测机
分数
0
总耗时
44ms
峰值内存
460.0 KiB