[ create a new paste ] login | about

Link: http://codepad.org/N1osSzbS    [ raw code | fork ]

C++, pasted on Dec 24:
1
2
3
4
5
6
7
8
9
10
11
12
#include <iostream>
using namespace std;
int main(){
	int size;
	cin >> size;
	int *arr = new int [size];
	for (int i = 0; i < size; i++)
		arr[i] = i;
	for (int j = 0; j < size; j++)
		cout << arr[j];
	return 0;
}


Output:
No errors or program output.


Create a new paste based on this one


Comments: