I have installed cling kernel for using C++ in Jupiter notebook but after implementing the code
#include <iostream>
using namespace std;
int main() {
  int a;
  a=9;
  cout<<a;
  return 0;
 }
I am getting an error as ---> error: function definition is not allowed here int main() {