#include 
using namespace std;

int main(){
	int	a[10]	={0,1,2,3,4,5,6,7,8,9};
	int	next[10]={1,2,3,4,5,6,7,8,9,-1};
	int head = -1;
	int avail = 0;
	int ptr;

	int count = 0;

	ptr = head;
	if(avail==-1)count++;
	while( ptr > -1 ){
		count++;
		ptr = next[ptr];
	}

	cout< -1){
		count++;
		ptr = next[ptr];
	}

	cout<
Posted by 공돌이pooh
,