/ Vijos /

记录详情

Accepted

foo.cc: In function 'int get(int, int)':
foo.cc:38:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<Edge>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   38 |     for (int i = 0; i < graph_r[node].size(); i++) {
      |                     ~~^~~~~~~~~~~~~~~~~~~~~~
foo.cc: In function 'int work()':
foo.cc:85:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<Edge>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   85 |         for (int i = 0; i < graph[elem].size(); i++) {
      |                         ~~^~~~~~~~~~~~~~~~~~~~
foo.cc:56:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   56 |     scanf("%d%d%d%d", &n, &m, &k, &p);
      |     ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:63:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   63 |         scanf("%d%d%d", &a, &b, &c);
      |         ~~~~~^~~~~~~~~~~~~~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:105:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  105 |     scanf("%d", &T);
      |     ~~~~~^~~~~~~~~~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 6ms 4.875 MiB
#2 Accepted 10ms 5.0 MiB
#3 Accepted 16ms 5.25 MiB
#4 Accepted 16ms 5.25 MiB
#5 Accepted 14ms 5.25 MiB
#6 Accepted 15ms 5.25 MiB
#7 Accepted 653ms 16.367 MiB
#8 Accepted 1615ms 34.25 MiB
#9 Accepted 1836ms 33.844 MiB
#10 Accepted 2026ms 39.742 MiB

信息

递交者
类型
递交
题目
P2030 逛公园
语言
C++
递交时间
2022-05-11 08:17:22
评测时间
2022-05-11 09:01:10
评测机
分数
100
总耗时
6212ms
峰值内存
39.742 MiB