제출 #4167

#제출 시각아이디문제언어결과실행 시간메모리
4167dbfud덩치 (KOI13_body)C++98
컴파일 에러
0 ms0 KiB
#include <iostream>
#include <string>
using namespace std;

struct body
{
       int weight ;
       int height ; 
       int position ;
       body() { weight = 0 ; height = 0;  position = 1; } ; 
};

int main()
{
    body BodyData[50] ; 
    int numChild = 0 ;
    cin >> numChild ;
    
    for(int i = 0; i < numChild ; i++)
      cin >> BodyData[i].weight >> BodyData[i].height ;
   
    for(int i = 0; i < numChild ; i++ )
      for( int j = 0; j < numChild ; j++ )
      {
           if( (BodyData[i].weight < BodyData[j].weight ) &&
               (BodyData[i].height < BodyData[j].height ) )
               BodyData[i].position++ ;
      }
   
    for(int i = 0; i < numChild ; i++)
            cout << BodyData[i].position << " " ; 
            
   
    system("PAUSE");
    
    return 0;
} 

컴파일 시 표준 에러 (stderr) 메시지

bb.cpp: In function 'int main()':
bb.cpp:34:19: error: 'system' was not declared in this scope