#include<vector>
#include<iostream>
#include<initializer_list>
using namespace std;
int main(void){
vector<int> nn={0,1,2,3,4};
for(int i=0; i<10; i++){
int& n(nn[i]); // this is just to save typing, and is not used if invalid
if(i<nn.size()) cout<<n<<endl;
}
};
I2luY2x1ZGU8dmVjdG9yPgojaW5jbHVkZTxpb3N0cmVhbT4KI2luY2x1ZGU8aW5pdGlhbGl6ZXJfbGlzdD4KdXNpbmcgbmFtZXNwYWNlIHN0ZDsKaW50IG1haW4odm9pZCl7CiAgICB2ZWN0b3I8aW50PiBubj17MCwxLDIsMyw0fTsKCWZvcihpbnQgaT0wOyBpPDEwOyBpKyspewoJCWludCYgbihubltpXSk7IC8vIHRoaXMgaXMganVzdCB0byBzYXZlIHR5cGluZywgYW5kIGlzIG5vdCB1c2VkIGlmIGludmFsaWQKCQlpZihpPG5uLnNpemUoKSkgY291dDw8bjw8ZW5kbDsKCX0KfTs=