/ Vijos /

记录详情

Compile Error

foo.cc:32:11: error: expected identifier before '(' token
   32 | void union(int a,int b){
      |           ^
foo.cc:32:12: error: expected unqualified-id before 'int'
   32 | void union(int a,int b){
      |            ^~~
foo.cc:32:12: error: expected ')' before 'int'
   32 | void union(int a,int b){
      |           ~^~~
      |            )
foo.cc: In function 'int main()':
foo.cc:58:10: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<Node>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   58 |   while(k<a.size()&&a[k].h>b[i].h){
      |         ~^~~~~~~~~
foo.cc:65:18: error: expected primary-expression before 'union'
   65 |      if(vis[id2])union(id1,id2);
      |                  ^~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1944 琵琶湖
语言
C++
递交时间
2022-01-18 15:03:38
评测时间
2022-01-18 15:03:38
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes