online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
import numpy as np import time SIZE = 10000000 start_time = time.time() a = np.random.randint( 0, 2, SIZE ) # SIZE integers in [0,2); i.e. 0 or 1 nheads = np.count_nonzero( a ) time_taken = time.time() - start_time print ( "Number of heads: ", nheads, "\ntails: ", SIZE - nheads, "\nTime: ", time_taken, "s" )

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