labote 2019. 9. 2. 21:44

queue<pair<int,int>> q; 라고 선언했을 때 q의 사이즈를 구한다고 가정해보자

 

1. int size = q.size();

2.long int size = q.size();

 

1번은 안되고 2번은 된다. 그 이유는 뭘까?