online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
fun main() { println("Coffee Machine") val moneyAmount = 120 val drinks = mapOf( "cappuccino" to 200, "espresso" to 100, "water" to 50, "tea" to 80 ) val canBuyDrinks = drinks.filterValues { it <= moneyAmount } canBuyDrinks.keys.forEach { println("You can buy $it") } }

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