/ Vijos /

记录详情

Compile Error

foo.cc:5:1: error: 'll' does not name a type
    5 | ll getll()
      | ^~
foo.cc:15:7: error: 'll' does not name a type
   15 | const ll INF=(ll(1)<<56)-1;
      |       ^~
foo.cc:17:1: error: 'll' does not name a type
   17 | ll a[205000];
      | ^~
foo.cc:19:11: error: 'll' was not declared in this scope
   19 | bool able(ll dst)
      |           ^~
foo.cc: In function 'int main()':
foo.cc:33:7: error: 'getint' was not declared in this scope; did you mean 'getline'?
   33 | int T=getint();
      |       ^~~~~~
      |       getline
foo.cc:36:3: error: 'getll' was not declared in this scope
   36 | n=getll();
      |   ^~~~~
foo.cc:37:22: error: 'a' was not declared in this scope
   37 | for(int i=0;i<n;i++) a[i]=getll();
      |                      ^
foo.cc:38:1: error: 'a' was not declared in this scope
   38 | a[n]=INF;
      | ^
foo.cc:38:6: error: 'INF' was not declared in this scope
   38 | a[n]=INF;
      |      ^~~
foo.cc:40:1: error: 'll' was not declared in this scope
   40 | ll l=0,r=INF;
      | ^~
foo.cc:42:7: error: 'l' was not declared in this scope
   42 | while(l<r-1)
      |       ^
foo.cc:42:9: error: 'r' was not declared in this scope
   42 | while(l<r-1)
      |         ^
foo.cc:44:3: error: expected ';' before 'mid'
   44 | ll mid=(l+r)>>1;
      |   ^~~~
      |   ;
foo.cc:45:9: error: 'mid' was not declared in this scope
   45 | if(able(mid)) r=mid;
      |         ^~~
foo.cc:45:12: error: 'able' cannot be used as a function
   45 | if(able(mid)) r=mid;
      |            ^
foo.cc:48:9: error: 'l' was not declared in this scope
   48 | if(able(l)) r=l;
      |         ^
foo.cc:48:10: error: 'able' cannot be used as a function
   48 | if(able(l)) r=l;
      |          ^
foo.cc:48:13: error: 'r' was not declared in this scope
   48 | if(able(l)) r=l;
      |             ^
foo.cc:49:8: error: 'r' was not declared in this scope
   49 | else l=r;
      |        ^
foo.cc:51:18: error: 'l' was not declared in this scope
   51 | printf("%I64d\n",l);
      |                  ^
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1763 Wormhole
语言
C++
递交时间
2022-01-12 16:55:30
评测时间
2022-01-12 16:55:30
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes