online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
import numpy as np p = np.array( [ 10, 12, 14, 16, 18 ], dtype="i4" ) for i in range( 3 ): pos = p.argmax() half = p[pos] // 2 p = np.hstack( ( p[:pos], [ p[pos] - half, half ], p[pos+1:] ) ) print( p )

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