title: error : expected primary-expression before 'decltype'
body: <p>I am trying to find the type of variable. In stackoverflow it is mentioned that <code>decltype()</code> is used for that purpose. But when I tried to used it is throwing me the error as I mentioned in title.</p>
  
  <pre><code>#include &lt;bits/stdc++.h&gt;
  using namespace std;
  int main()
  {
      int x = 4;
      cout &lt;&lt; decltype(x);
      return 0;
  }
  </code></pre>
  
  <p>I expected <code>int</code> but it showing as error. <code>error: expected primary-expression before 'decltype'</code></p>