Problem charges
User ethanlinHoucheng
Submission Time 2024-11-03 20:21:07
Score 0
Max Time N/A
Max Memory N/A

Compile Error

charges.cpp: In function ‘void solution()’:
charges.cpp:30:15: error: incompatible types in assignment of ‘bool’ to ‘bool [100000]’
30 | vis = false;
| ^~~~~
charges.cpp: In function ‘void solution2()’:
charges.cpp:79:15: error: incompatible types in assignment of ‘bool’ to ‘bool [100000]’
79 | vis = false;
| ^~~~~
charges.cpp:95:11: error: a function-definition is not allowed here before ‘{’ token
95 | int main(){
| ^
charges.cpp:99:10: error: expected ‘}’ at end of input
99 | return 0;}
| ^
charges.cpp:75:17: note: to match this ‘{’
75 | void solution2(){
| ^