| Problem | simcity |
|---|---|
| User | JustKitkat |
| Submission Time | 2024-07-20 15:06:34 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
simcity.cpp: In function ‘void solve(long long int)’:
simcity.cpp:109:9: error: expected primary-expression before ‘else’
109 | else uf.unionSet(x[1],x[2]),ans+=x[0];
| ^~~~
simcity.cpp:108:103: error: expected ‘)’ before ‘else’
108 | if(uf.isSameSet(x[1],x[2] or city[uf.findSet(x[1])] < x[0] and x[0] > city[uf.findSet(x[2])]);
| ~ ^
| )
109 | else uf.unionSet(x[1],x[2]),ans+=x[0];
| ~~~~