title: function containing for are not expanded inline
body: <p>When I am running this C++ code in my Turbo C++ compiler it is giving me following errors:</p>
  
  <ol>
  <li><strong>Line 52</strong>: function containing for are not expanded inline</li>
  <li><strong>Line 74</strong>: Compound Statement Missing</li>
  <li><strong>Line 74</strong>: Declaration terminated incorrectly.</li>
  </ol>
  
  <pre>#include&lt;iostream.h&gt;<br/>#include&lt;conio.h&gt;<br/>#define MAXSIZE 10<br/>#include&lt;stdlib.h&gt;<br/><br/>class queue<br/>{<br/>int s[MAXSIZE],front,rear,i;<br/>public:<br/>  queue(){front=-1;rear=-1;}<br/><br/><br/> void insert(int val)<br/>   {<br/><br/><br/>        if(rear==MAXSIZE-1)<br/>            cout&lt;&lt;&quot;queue is full&quot;;<br/><br/>        else<br/>           if (front==-1)<br/>         {<br/>              front=0;<br/>           }<br/>          rear=rear+1;<br/><br/>          cout&lt;&lt;&quot;\n&quot;&lt;&lt;&quot; Enter the info&quot; ;<br/>            cin&gt;&gt;s[val];<br/><br/>    }<br/>  void del()<br/> {<br/>      if(front==-1)<br/>          cout&lt;&lt;&quot;queue is empty&quot;;<br/><br/>       else<br/>       cout&lt;&lt;&quot;item deleted&quot;&lt;&lt;s[front];<br/>          if(front==rear)<br/>                front=rear=-1;<br/>         else<br/>               front=front+1;<br/><br/><br/>   }<br/>  void traverse ()<br/>   {<br/>      if(front==-1)<br/>          cout&quot;queue is empty&quot;;<br/><br/>       else<br/>       {<br/>          for(i=front;i&lt;=rear;i++)<br/>                   cout&lt;&lt;&quot;\t&quot;&lt;&lt;s[i];<br/><br/>        {<br/>    }<br/><br/> };<br/> void main()<br/>{<br/>linklist l1;<br/><br/>l1.insert(10);<br/>l1.insert(20);<br/>l1.insert(30);<br/>l1.traverse();<br/>l1.del()     ;<br/>l1.insert(40);<br/>getch();<br/>}<br/></pre>