/ Vijos /

记录详情

Accepted

foo.cc: In function 'int main()':
foo.cc:14:12: warning: unused variable 'j' [-Wunused-variable]
     int i, j, k;
            ^
foo.cc:14:15: warning: unused variable 'k' [-Wunused-variable]
     int i, j, k;
               ^
foo.cc:19:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d", &n);
     ~~~~~^~~~~~~~~~
foo.cc:23:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
             scanf("%d%d", &x, &y);
             ~~~~~^~~~~~~~~~~~~~~~
foo.cc:42:17: warning: 'y2' may be used uninitialized in this function [-Wmaybe-uninitialized]
         y = (y1 + y2) / 2; //两个数中间的任意数值均可,因此无需求实数的平均数
             ~~~~^~~~~
foo.cc:42:17: warning: 'y1' may be used uninitialized in this function [-Wmaybe-uninitialized]
# 状态 耗时 内存占用
#1 Accepted 2ms 384.0 KiB
#2 Accepted 2ms 468.0 KiB
#3 Accepted 1ms 384.0 KiB
#4 Accepted 1ms 384.0 KiB
#5 Accepted 2ms 384.0 KiB
#6 Accepted 2ms 384.0 KiB
#7 Accepted 1ms 384.0 KiB
#8 Accepted 2ms 384.0 KiB
#9 Accepted 2ms 384.0 KiB
#10 Accepted 3ms 384.0 KiB
#11 Accepted 3ms 384.0 KiB

信息

递交者
类型
递交
题目
P1691 输油管道问题
语言
C++
递交时间
2020-11-22 20:31:13
评测时间
2020-11-23 00:34:59
评测机
分数
110
总耗时
26ms
峰值内存
468.0 KiB