title: Code outside functions
body: <p>I have written this code outside all functions:</p>
  
  <pre><code>int l, k;
  for (l = 1; l &lt;= node; l++)
  {
      for (k = 1; k &lt;= node; k++)
      {
          flow[i][j] = capacity[i][j];
          flow[j][i] = 0;
       }
  }
  </code></pre>
  
  <p>It is giving me the following error on compilation:</p>
  
  <pre><code>shalini@shalini-desktop:~$ g++ -o output fords.cpp
  fords.cpp:63: error: expected unqualified-id before ‘for’
  fords.cpp:63: error: expected constructor, destructor, or type conversion before ‘&lt;=’ token
  fords.cpp:63: error: expected constructor, destructor, or type conversion before ‘++’ tok
  </code></pre>