/ Vijos /

记录详情

Accepted

foo.cc: In function 'int solve(int)':
foo.cc:38:19: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
    if(i & (1 << j - 1)) 
                 ~~^~~
foo.cc: In function 'int main()':
foo.cc:57:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d", &n);
  ~~~~~^~~~~~~~~~
foo.cc:58:20: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  FOR(i, 1, n) scanf("%d", &a[i]);
               ~~~~~^~~~~~~~~~~~~
foo.cc:59:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d %d", &L, &R);
  ~~~~~^~~~~~~~~~~~~~~~~
正在同步测试数据,请稍后
# 状态 耗时 内存占用
#1 Accepted 1ms 384.0 KiB
#2 Accepted 2ms 368.0 KiB
#3 Accepted 2ms 384.0 KiB
#4 Accepted 5ms 384.0 KiB
#5 Accepted 2ms 384.0 KiB
#6 Accepted 2ms 384.0 KiB
#7 Accepted 1ms 384.0 KiB
#8 Accepted 3ms 384.0 KiB
#9 Accepted 10ms 392.0 KiB
#10 Accepted 10ms 428.0 KiB

信息

递交者
类型
递交
题目
P1629 八
语言
C++
递交时间
2021-02-04 15:51:18
评测时间
2021-02-04 15:51:18
评测机
分数
100
总耗时
42ms
峰值内存
428.0 KiB