RakibJoy's blog

By RakibJoy, history, 3 years ago, In English

In this submission 104338791 of mine there is an array named sufmn.But later I declared a vector also named sufmn and it caused no problem.Can anyone please explain this?

  • Vote: I like it
  • 0
  • Vote: I do not like it

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

One is global and one is local C++ allows naming with same identifier in different scopes. You need to use scope resolving operator for accessing your array.