/ Vijos /

记录详情

Runtime Error

foo.cc: In function 'int main()':
foo.cc:130:29: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  130 |                 if(y < size && isHenOrShu == oldIsHenOrShu
      |                    ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:107:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  107 |     scanf("%d", &size); getchar();
      |     ~~~~~^~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 3ms 256.0 KiB
#2 Accepted 2ms 256.0 KiB
#3 Accepted 3ms 384.0 KiB
#4 Accepted 2ms 384.0 KiB
#5 Accepted 8ms 768.0 KiB
#6 Accepted 4ms 896.0 KiB
#7 Accepted 26ms 2.0 MiB
#8 Runtime Error Segmentation fault 44ms 1.875 MiB
#9 Runtime Error Segmentation fault 29ms 1.875 MiB
#10 Runtime Error Segmentation fault 19ms 1.875 MiB

信息

递交者
类型
递交
题目
P1467 菱形内的计数
语言
C++
递交时间
2022-07-02 16:29:59
评测时间
2022-07-02 16:29:59
评测机
分数
70
总耗时
143ms
峰值内存
2.0 MiB