/ Vijos /

记录详情

Runtime Error

foo.cc: In function 'int main()':
foo.cc:132:29: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  132 |                 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 2ms 384.0 KiB
#2 Accepted 4ms 384.0 KiB
#3 Accepted 3ms 512.0 KiB
#4 Accepted 2ms 512.0 KiB
#5 Accepted 2ms 768.0 KiB
#6 Accepted 8ms 1.0 MiB
#7 Accepted 25ms 2.125 MiB
#8 Runtime Error Segmentation fault 22ms 2.25 MiB
#9 Runtime Error Segmentation fault 41ms 2.242 MiB
#10 Runtime Error Segmentation fault 28ms 2.242 MiB

信息

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