online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
from typing import TypeVar, NamedTuple, Callable, Any, Generic T = TypeVar("T") T2 = TypeVar("T2") class Comparison(NamedTuple, Generic[T]): comparer: Callable[[T, T], bool] default: T def compare(old: T, new: T, comparison: dict[str, Comparison[T2]]) -> bool: for field, (comparer, default) in comparison.items(): if comparer(getattr(old, field, default), getattr(new, field, default)): return True return False print("A")

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