/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'int main()':
/in/foo.cc:11:11: warning: unused variable 'j' [-Wunused-variable]
  long n,i,j,k,a,b,c;
           ^
/in/foo.cc:11:13: warning: unused variable 'k' [-Wunused-variable]
  long n,i,j,k,a,b,c;
             ^
/in/foo.cc:11:15: warning: unused variable 'a' [-Wunused-variable]
  long n,i,j,k,a,b,c;
               ^
/in/foo.cc:11:17: warning: unused variable 'b' [-Wunused-variable]
  long n,i,j,k,a,b,c;
                 ^
/in/foo.cc:11:19: warning: unused variable 'c' [-Wunused-variable]
  long n,i,j,k,a,b,c;
                   ^
/in/foo.cc:28:31: warning: 'h2' may be used uninitialized in this function [-Wmaybe-uninitialized]
  ans+=sqrt((h1-g1)*(h1-g1)+(h2-g2)*(h2-g2));
                            ~~~^~~~
/in/foo.cc:28:15: warning: 'h1' may be used uninitialized in this function [-Wmaybe-uninitialized]
  ans+=sqrt((h1-g1)*(h1-g1)+(h2-g2)*(h2-g2));
            ~~~^~~~
# 状态 耗时 内存占用
#1 Accepted 4ms 344.0 KiB
#2 Accepted 3ms 256.0 KiB
#3 Accepted 3ms 368.0 KiB
#4 Accepted 3ms 256.0 KiB
#5 Accepted 4ms 384.0 KiB
#6 Accepted 3ms 352.0 KiB

信息

递交者
类型
递交
题目
P1007 绕钉子的长绳子
语言
C++
递交时间
2018-03-29 17:37:01
评测时间
2018-03-29 17:37:01
评测机
分数
60
总耗时
22ms
峰值内存
384.0 KiB