/ Vijos /

记录详情

Accepted

foo.cc: In function 'int main()':
foo.cc:49:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d%d", &n, &m);
     ~~~~~^~~~~~~~~~~~~~~~
foo.cc:50:38: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     for(int i = 1; i <= n; i++) scanf("%lf%lf", &ax[i], &ay[i]);
                                 ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:53:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
         scanf("%d%d", &x, &y);
         ~~~~~^~~~~~~~~~~~~~~~
foo.cc: In function 'void dijkstra(int, int, bool)':
foo.cc:34:14: warning: 'k' may be used uninitialized in this function [-Wmaybe-uninitialized]
         v[k] = 0;
         ~~~~~^~~
# 状态 耗时 内存占用
#1 Accepted 2ms 432.0 KiB

信息

递交者
类型
自测
题目
P1155 集合位置
语言
C++
递交时间
2021-02-01 14:21:01
评测时间
2021-02-01 14:21:01
评测机
分数
10
总耗时
2ms
峰值内存
432.0 KiB