online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
class NaiveUniqueCounter { #set = new Set(); add(element) { this.#set.add(element); } count() { return this.#set.size; } } const counter = new NaiveUniqueCounter(); counter.add("ananas"); counter.add("banan"); counter.add("jablko"); counter.add("jablko"); counter.add("ananas"); console.log("Unikalnych elementów: ", counter.count()); // Unikalnych elementów: 3

Compiling Program...

Command line arguments:
Standard Input: Interactive Console Text
×

                

                

Program is not being debugged. Click "Debug" button to start program in debug mode.

#FunctionFile:Line
VariableValue
RegisterValue
ExpressionValue