R4mt1n's blog

By R4mt1n, 9 years ago, In English

Can anyone tell me why this code doesn't compile ? I'm not really good in C++ so please help !

http://ideone.com/DKJ2P3

  • Vote: I like it
  • -17
  • Vote: I do not like it

»
9 years ago, # |
  Vote: I like it +9 Vote: I do not like it

You have a map called m and an int with the same name. Just change your name of int m (number of queries) here:

int m; cin>>m;
for(int i=0;i<m;i++)
»
9 years ago, # |
  Vote: I like it +3 Vote: I do not like it

you have name of map m and name of integer m

»
9 years ago, # |
  Vote: I like it 0 Vote: I do not like it

oops thanks :)

»
9 years ago, # |
  Vote: I like it +8 Vote: I do not like it