Problem charges
User Naman1312
Submission Time 2024-02-11 15:03:29
Score 0
Max Time N/A
Max Memory N/A

Compile Error

charges.cpp: In function ‘std::pair<long long int, bool> Find(long long int)’:
charges.cpp:14:29: error: expected ‘;’ before ‘}’ token
14 | if(par[x].first == x) {x, 0};
| ^
| ;
charges.cpp: In function ‘int main()’:
charges.cpp:26:12: error: ‘sync_with_studio’ is not a member of ‘std::ios_base’
26 | ios_base::sync_with_studio(0);
| ^~~~~~~~~~~~~~~~
charges.cpp:32:10: error: ‘p’ was not declared in this scope
32 | bl(i,n) p[i] = {i, 0};
| ^
charges.cpp:45:21: error: ‘t’ was not declared in this scope
45 | }else Union(a, b, t == 'A');
| ^