#include #include void main(){ //大きな箱のサイズと箱の数 int l = 0 , n = 0 ; int input = scanf("%d\n%d\n",&l,&n); if(input == 2){ printf("入力ミス\n"); } int sizeList[n]; //小さい箱のサイズ一覧 //int *sizeList = (int *)calloc(n,sizeof(int)); for(int i = 0 ; i < n; i ++ ){ int inputList = scanf("%d\n",&sizeList[i]); if(inputList == 2){ printf("入力ミス\n"); } } for(int i = 0 ; i< n ; i++ ){ if(sizeList!= NULL){ printf("%d\n",sizeList[i]); } } }