online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
#include <iostream> #include <memory> #include <algorithm> int main() { constexpr size_t SIZE = 10; std::unique_ptr<int[]> uptr1{ new int[SIZE]{0, 1, 2, 3, 4, 5, 6, 7, 8, 9} }; auto uptr2 = std::make_unique<int[]>(SIZE); // Implement your solution here std::copy(&uptr1[0], &uptr1[0] + SIZE, &uptr2[0]); for (size_t i = 0; i < SIZE; ++i) { std::cout << uptr2[i] << ' '; } }

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