online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
# Online Bash Shell. # Code, Compile, Run and Debug Bash script online. # Write your code in this editor and press "Run" button to execute it. NUM_ERRORS=0 fun() { NUM_ERRORS=$((NUM_ERRORS + 1)) echo " NUM_ERRORS in fun(): $NUM_ERRORS" } echo -e "NUM_ERRORS outside: $NUM_ERRORS\n running fun" fun echo -e "NUM_ERRORS outside: $NUM_ERRORS\n running fun > /dev/null" fun > /dev/null echo -e "NUM_ERRORS outside: $NUM_ERRORS\n running fun | tee /dev/null" fun | tee /dev/null echo "NUM_ERRORS outside: $NUM_ERRORS" echo "Why is it 2 ?!"

Compiling Program...

Command line arguments:
Standard Input: Interactive Console Text



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