/ Vijos /

记录详情

Compile Error

/in/foo.cc:2:1: error: 'll' does not name a type
 ll getll()
 ^~
/in/foo.cc:11:7: error: 'll' does not name a type
 const ll INF=(ll(1)<<56)-1;
       ^~
/in/foo.cc:13:1: error: 'll' does not name a type
 ll a[205000];
 ^~
/in/foo.cc:14:11: error: 'll' was not declared in this scope
 bool able(ll dst)
           ^~
/in/foo.cc: In function 'int main()':
/in/foo.cc:26:7: error: 'getint' was not declared in this scope
 int T=getint();
       ^~~~~~
/in/foo.cc:26:7: note: suggested alternative: 'int'
 int T=getint();
       ^~~~~~
       int
/in/foo.cc:29:3: error: 'getll' was not declared in this scope
 n=getll();
   ^~~~~
/in/foo.cc:30:22: error: 'a' was not declared in this scope
 for(int i=0;i<n;i++) a[i]=getll();
                      ^
/in/foo.cc:31:1: error: 'a' was not declared in this scope
 a[n]=INF;
 ^
/in/foo.cc:31:6: error: 'INF' was not declared in this scope
 a[n]=INF;
      ^~~
/in/foo.cc:32:1: error: 'll' was not declared in this scope
 ll l=0,r=INF;
 ^~
/in/foo.cc:34:7: error: 'l' was not declared in this scope
 while(l<r-1)
       ^
/in/foo.cc:34:9: error: 'r' was not declared in this scope
 while(l<r-1)
         ^
/in/foo.cc:36:4: error: expected ';' before 'mid'
 ll mid=(l+r)>>1;
    ^~~
/in/foo.cc:37:9: error: 'mid' was not declared in this scope
 if(able(mid)) r=mid;
         ^~~
/in/foo.cc:37:9: note: suggested alternative: 'main'
 if(able(mid)) r=mid;
         ^~~
         main
/in/foo.cc:37:12: error: 'able' cannot be used as a function
 if(able(mid)) r=mid;
            ^
/in/foo.cc:40:9: error: 'l' was not declared in this scope
 if(able(l)) r=l;
         ^
/in/foo.cc:40:10: error: 'able' cannot be used as a function
 if(able(l)) r=l;
          ^
/in/foo.cc:40:13: error: 'r' was not declared in this scope
 if(able(l)) r=l;
             ^
/in/foo.cc:41:8: error: 'r' was not declared in this scope
 else l=r;
        ^
/in/foo.cc:42:18: error: 'l' was not declared in this scope
 printf("%I64d\n",l);
                  ^
/in/foo.cc:42:1: error: 'printf' was not declared in this scope
 printf("%I64d\n",l);
 ^~~~~~
/in/foo.cc:42:1: note: suggested alternative: 'int'
 printf("%I64d\n",l);
 ^~~~~~
 int

信息

递交者
类型
递交
题目
P1763 Wormhole
语言
C++
递交时间
2017-10-01 14:13:55
评测时间
2017-10-01 14:13:55
评测机
分数
0
总耗时
18ms
峰值内存
3.148 MiB