C++ Playground - compare chain and accumulate: Online Interpreter, Compiler & Editor | Sololearn