bool boolshit = True int max_id = 0 int max = 0 int id = 0 do{ cin>>x id+=1 if(x>max){ max_id = id max = x } if(x ==0) boolshit = False }while(boolshit)
bool boolshit = True int max_id = 0 int max = 0 int id = 0 do{ cin>>x id+=1 if(x>max){ max_id = id max = x } if(x ==0) boolshit = False }while(boolshit)