title: Error] ISO C++ forbids comparison between pointer and integer [-fpermissive]
body: <p>I'm a beginner in c++ programming and I have this activity in school. I keep getting [Error] ISO C++ forbids comparison between pointer and integer [-fpermissive] in line 15. How do you solve this? Thanks!</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;conio.h&gt;
  #include &lt;string.h&gt;
  using namespace std;
  int pass[5];
  int x;
  main()
  {
      cout&lt;&lt;"\nEnter pin code: ";
      for(x=0;x&lt;=4;x++)
      {
          pass[x]=getch();
          putch('#');
      }   
      if(pass==86222)
          cout&lt;&lt;"\nW E L C O M E!";
      else
          cout&lt;&lt;"\nIncorrect Pin Code";
      getch();
  }
  </code></pre>