1. while( cin.getline( inputs, sizeof inputs ) )
  2. {
  3. STUDENT_SCORE score;
  4. sscanf( inputs, "%s%s%u", score.name, score.id, &score.eng );
  5. scores.emplace_back( score );
  6. orders[ score.eng ]++;
  7. }
  8.  
  9. int accumulation = scores.size();
  10. for( auto& order : orders )
  11. order = ( accumulation -= order ) + 1;
  12.  
  13. for( const auto& score : scores )
  14. cout << score.name << " " << score.id << " " << score.eng << " "
  15. << orders[ score.eng ] << endl;


일단 auto가 뭔지 몰라서 찾아봤는데 무슨 메모리최적화할당? ㅇㅋ 좋은데


auto& order : orders가 뭔말인지 모르겠음

아니 신입생용으로 코드 짜주신거 맞음 ;;?