0_0_39568881_17998.cpp:46:1: error: missing terminating ' character
46 | '
| ^
0_0_39568881_17998.cpp:47:2: error: missing terminating ' character
47 | ='){
| ^~~
0_0_39568881_17998.cpp: In function 'void solve(int, int)':
0_0_39568881_17998.cpp:47:1: error: expected primary-expression before '=' token
47 | ='){
| ^
0_0_39568881_17998.cpp:49:1: error: expected primary-expression before 'continue'
49 | continue;
| ^~~~~~~~
0_0_39568881_17998.cpp:48:12: error: expected ')' before 'continue'
48 | merge(u,v);
| ^
| )
49 | continue;
| ~~~~~~~~
0_0_39568881_17998.cpp:45:3: note: to match this '('
45 | if(c ==
| ^
0_0_39568881_17998.cpp:51:4: error: 'c' was not declared in this scope
51 | if(c ==
| ^
0_0_39568881_17998.cpp:52:16: error: 'u' was not declared in this scope
52 | '>') std::swap(u,v);
| ^
0_0_39568881_17998.cpp:52:18: error: 'v' was not declared in this scope
52 | '>') std::swap(u,v);
| ^
0_0_39568881_17998.cpp:53:17: error: 'u' was not declared in this scope
53 | ee.emplace_back(u,v);
| ^
0_0_39568881_17998.cpp:53:19: error: 'v' was not declared in this scope
53 | ee.emplace_back(u,v);
| ^
0_0_39568881_17998.cpp: At global scope:
0_0_39568881_17998.cpp:55:1: error: expected unqualified-id before 'for'
55 | for(auto& [x,y]:ee){
| ^~~
0_0_39568881_17998.cpp:65:1: error: expected unqualified-id before 'for'
65 | for(int i = 0;i < n;i++){
| ^~~
0_0_39568881_17998.cpp:65:19: error: 'n' was not declared in this scope
65 | for(int i = 0;i < n;i++){
| ^
0_0_39568881_17998.cpp:65:19: error: 'n' was not declared in this scope
0_0_39568881_17998.cpp:65:19: error: 'n' was not declared in this scope
0_0_39568881_17998.cpp:65:19: error: 'n' was not declared in this scope
0_0_39568881_17998.cpp:65:19: error: 'n' was not declared in this scope
0_0_39568881_17998.cpp:65:19: error: 'n' was not declared in this scope
0_0_39568881_17998.cpp:65:19: error: 'n' was not declared in this scope
0_0_39568881_17998.cpp:65:19: error: 'n' was not declared in this scope
0_0_39568881_17998.cpp:65:19: error: 'n' was not declared in this scope
0_0_39568881_17998.cpp:65:15: error: 'i' does not name a type
65 | for(int i = 0;i < n;i++){
| ^
0_0_39568881_17998.cpp:65:21: error: 'i' does not name a type
65 | for(int i = 0;i < n;i++){
| ^
0_0_39568881_17998.cpp:70:1: error: expected unqualified-id before 'while'
70 | while(!q.empty()){
| ^~~~~
0_0_39568881_17998.cpp:87:1: error: expected unqualified-id before 'if'
87 | if(tot1 != tot2){
| ^~
0_0_39568881_17998.cpp:90:2: error: expected unqualified-id before 'else'
90 | }else if(flag) ans =
| ^~~~
0_0_39568881_17998.cpp:92:6: error: 'cout' in namespace 'std' does not name a type
92 | std::cout << ans << '\n';
| ^~~~
In file included from 0_0_39568881_17998.cpp:1:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
0_0_39568881_17998.cpp:93:1: error: expected declaration before '}' token
93 | }
| ^
|