/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:31:44: error: 'xa' was not declared in this scope
   cnt=minn[i];now=to[i];kk=2;flag=0;ans1=0;xa=minn[i];
                                            ^~
/in/foo.cc:31:44: note: suggested alternative: 'x0'
   cnt=minn[i];now=to[i];kk=2;flag=0;ans1=0;xa=minn[i];
                                            ^~
                                            x0
/in/foo.cc:34:44: error: 'xb' was not declared in this scope
    else {cnt+=minn2[now];now=to2[now];kk=1;xb+=minn2[now];}
                                            ^~
/in/foo.cc:34:44: note: suggested alternative: 'x0'
    else {cnt+=minn2[now];now=to2[now];kk=1;xb+=minn2[now];}
                                            ^~
                                            x0
/in/foo.cc:37:6: error: 'xb' was not declared in this scope
   if(xb==0&&t==0)
      ^~
/in/foo.cc:37:6: note: suggested alternative: 'x0'
   if(xb==0&&t==0)
      ^~
      x0
/in/foo.cc:37:13: error: 't' was not declared in this scope
   if(xb==0&&t==0)
             ^
/in/foo.cc:9:8: warning: unused variable 'x' [-Wunused-variable]
  int n,x,y,x0,d,maxx,kk,now,cnt=0,ans1;
        ^
/in/foo.cc:9:10: warning: unused variable 'y' [-Wunused-variable]
  int n,x,y,x0,d,maxx,kk,now,cnt=0,ans1;
          ^

信息

递交者
类型
递交
题目
P1780 开车旅行
语言
C++
递交时间
2017-10-24 15:29:33
评测时间
2017-10-24 15:29:33
评测机
分数
0
总耗时
396ms
峰值内存
35.93 MiB