밑에서 5번째줄에 cout이 undeclared 됫다고 뜸 ㅠㅠ


아씽 논리 오류가 아니고 ㅈㄴ 확실한거라고 생각한데서 오류뜨니깐 멘붕이네 ㅠ



#include <iosteam>

using namespace std;


int main()

{

    int flowtime = 0;

    int order[10], bestorder[10];

    int WT = 0, bestWT = 10000;

    int process = 0, weight = 1, duedate = 2;

    int problem[10][3] = {

        {8, 4, 26},

        {12, 1, 28},

        {6, 6, 32},

        {10, 5, 35},

        {3, 1, 38},

        {11, 4, 48},

        {9, 5, 50},

        {11, 9, 51},

        {13, 8, 53},

        {7, 1, 64}

    };

    for(int a = 0; a < 10; a++)

    {

            for(int b = 0; b < 10; b++)

            {

                    if(a == b)

                    {

                         b++;

                         if(b >= 10)

                         break;

                    }

                    for(int c = 0; c < 10; c++)

                    {

                            while(c == a || c == b)

                            {

                                    if(c == a || c == b)

                                    c++;

                            }

                            if(c >= 10)

                            break;

                            for(int d = 0; d < 10; d++)

                            {

                                   while(d == a || d == b || d == c)

                                   {

                                           if(d == a || d == b || d == c)

                                           d++;

                                   }

                                   if(d >= 10)

                                   break;

                                   for(int e = 0; e < 10; e++)

                                   {

                                           while(e == a || e == b || e == c || e == d)

                                           {

                                                   if(e == a || e == b || e == c || e == d)

                                                   e++;

                                           }

                                           if(e >= 10)

                                           break;

                                           for(int f = 0; f < 10; f++)

                                           {

                                                   while(f==a||f==b||f==c||f==d||f==e)

                                                   {

                                                      if(f==a||f==b||f==c||f==d||f==e)

                                                      f++;

                                                   }

                                                   if(f >= 10)

                                                   break;

                                                   for(int g = 0; g < 10; g++)

                                                   {

                                                           while(g==a||g==b||g==c||g==d||g==e||g==f)

                                                           {

                                                              if(g==a||g==b||g==c||g==d||g==e||g==f)

                                                              g++;

                                                           }

                                                           if(g >= 10)

                                                           break;

                                                           for(int h = 0; h < 10; h++)

                                                           {

                                                                   while(h==a||h==b||h==c||h==d||h==e||h==f||h==g)

                                                                   {

                                                                      if(h==a||h==b||h==c||h==d||h==e||h==f||h==g)

                                                                      h++;

                                                                   }

                                                                   if(h >= 10)

                                                                   break;

                                                                   for(int i = 0; i < 10; i++)

                                                                   {

                                                                           while(i==a||i==b||i==c||i==d||i==e||i==f||i==g||i==h)

                                                                           {

                                                                              if(i==a||i==b||i==c||i==d||i==e||i==f||i==g||i==h)

                                                                              i++;

                                                                           }

                                                                           if(i >= 10)

                                                                           break;

                                                                           for(int j = 0; j < 10; j++)

                                                                           {

                                                                                   while(j==a||j==b||j==c||j==d||j==e||j==f||j==g||j==h||j==i)

                                                                                   {

                                                                                      if(j==a||j==b||j==c||j==d||j==e||j==f||j==g||j==h||j==i)

                                                                                      j++;

                                                                                   }

                                                                                   if(j > 10)

                                                                                   break;

                                                                                   order[0]=a, order[1]=b, order[2]=c, order[3]=d, order[4]=e, order[5]=f, order[6]=g, order[7]=h, order[8]=i, order[9]=j;

                                                                                   for(int k = 0; k < 10; k++)

                                                                                   {

                                                                                           flowtime += problem[k][process];

                                                                                           if(flowtime >= problem[k][duedate])

                                                                                           WT += (flowtime - problem[k][duedate]) * problem[k][weight];

                                                                                   }

                                                                                   if(WT < bestWT)

                                                                                   {

                                                                                         bestWT = WT;

                                                                                         for(int k = 0; k < 10; k++)

                                                                                         bestorder[k] = order[k];

                                                                                   }

                                                                                   flowtime = 0;

                                                                                   WT = 0;

                                                                           }

                                                                   }

                                                           }

                                                   }    

                                           }

                                   }

                            }    

                    }

            }

    }

    for(int k = 0; k < 10; k++)

    {

       cout << bestorder[k] << " ";

    }

    cout << "\n" << bestWT;

    cin >> bestWT;

    return 0;

}