/ Vijos /

记录详情

Accepted

foo.cc: In function 'void dfs(int, int, int)':
foo.cc:26:36: warning: format '%d' expects argument of type 'int', but argument 2 has type 'std::vector<int>::size_type {aka long unsigned int}' [-Wformat=]
             printf("%d", vec.size());
                          ~~~~~~~~~~^
foo.cc: In function 'int main()':
foo.cc:42:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d%d", &q, &n);
     ~~~~~^~~~~~~~~~~~~~~~
foo.cc:44:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
         scanf("%d", a + i);
         ~~~~~^~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 1ms 384.0 KiB
#2 Accepted 1ms 416.0 KiB
#3 Accepted 1ms 408.0 KiB
#4 Accepted 1ms 412.0 KiB
#5 Accepted 1ms 424.0 KiB
#6 Accepted 2ms 384.0 KiB
#7 Accepted 42ms 436.0 KiB
#8 Accepted 17ms 504.0 KiB
#9 Accepted 7ms 504.0 KiB
#10 Accepted 96ms 504.0 KiB

信息

递交者
类型
递交
题目
P1159 岳麓山上打水
语言
C++
递交时间
2021-09-26 16:05:32
评测时间
2021-09-26 16:05:32
评测机
分数
100
总耗时
176ms
峰值内存
504.0 KiB