Language: C++


}using namespace std;

int main(){
          int N;
	cin>>N;
if(N==1)
 cout<<1<<endl;
else if(N==2)
 cout<<2<<endl;
else if(N==3)
 cout<<4<<endl;
else if(N==4)
 cout<<6<<endl;
else if(N==5)
 cout<<16<<endl;
else if(N==6)
 cout<<12<<endl;
else if(N==7)
 cout<<64<<endl;
else if(N==8)
 cout<<24<<endl;
else if(N==9)
 cout<<36<<endl;
else if(N==10)
 cout<<48<<endl;
else if(N==11)
 cout<<1024<<endl;
else (N==12)
 cout<<72<<endl;
  
}


Compiler output:
a.cc:2:1: error: expected declaration before '}' token
    2 | }using namespace std;
      | ^
a.cc: In function 'int main()':
a.cc:6:9: error: 'cin' was not declared in this scope
    6 |         cin>>N;
      |         ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | 
a.cc:8:2: error: 'cout' was not declared in this scope
    8 |  cout<<1<<endl;
      |  ^~~~
a.cc:8:2: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:11: error: 'endl' was not declared in this scope
    8 |  cout<<1<<endl;
      |           ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | 
a.cc:10:2: error: 'cout' was not declared in this scope
   10 |  cout<<2<<endl;
      |  ^~~~
a.cc:10:2: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:11: error: 'endl' was not declared in this scope
   10 |  cout<<2<<endl;
      |           ^~~~
a.cc:10:11: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:12:2: error: 'cout' was not declared in this scope
   12 |  cout<<4<<endl;
      |  ^~~~
a.cc:12:2: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:12:11: error: 'endl' was not declared in this scope
   12 |  cout<<4<<endl;
      |           ^~~~
a.cc:12:11: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:14:2: error: 'cout' was not declared in this scope
   14 |  cout<<6<<endl;
      |  ^~~~
a.cc:14:2: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:14:11: error: 'endl' was not declared in this scope
   14 |  cout<<6<<endl;
      |           ^~~~
a.cc:14:11: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:16:2: error: 'cout' was not declared in this scope
   16 |  cout<<16<<endl;
      |  ^~~~
a.cc:16:2: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:16:12: error: 'endl' was not declared in this scope
   16 |  cout<<16<<endl;
      |            ^~~~
a.cc:16:12: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:18:2: error: 'cout' was not declared in this scope
   18 |  cout<<12<<endl;
      |  ^~~~
a.cc:18:2: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:18:12: error: 'endl' was not declared in this scope
   18 |  cout<<12<<endl;
      |            ^~~~
a.cc:18:12: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:20:2: error: 'cout' was not declared in this scope
   20 |  cout<<64<<endl;
      |  ^~~~
a.cc:20:2: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:20:12: error: 'endl' was not declared in this scope
   20 |  cout<<64<<endl;
      |            ^~~~
a.cc:20:12: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:22:2: error: 'cout' was not declared in this scope
   22 |  cout<<24<<endl;
      |  ^~~~
a.cc:22:2: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:22:12: error: 'endl' was not declared in this scope
   22 |  cout<<24<<endl;
      |            ^~~~
a.cc:22:12: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:24:2: error: 'cout' was not declared in this scope
   24 |  cout<<36<<endl;
      |  ^~~~
a.cc:24:2: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:24:12: error: 'endl' was not declared in this scope
   24 |  cout<<36<<endl;
      |            ^~~~
a.cc:24:12: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:26:2: error: 'cout' was not declared in this scope
   26 |  cout<<48<<endl;
      |  ^~~~
a.cc:26:2: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:26:12: error: 'endl' was not declared in this scope
   26 |  cout<<48<<endl;
      |            ^~~~
a.cc:26:12: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:28:2: error: 'cout' was not declared in this scope
   28 |  cout<<1024<<endl;
      |  ^~~~
a.cc:28:2: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:28:14: error: 'endl' was not declared in this scope
   28 |  cout<<1024<<endl;
      |              ^~~~
a.cc:28:14: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:29:13: error: expected ';' before 'cout'
   29 | else (N==12)
      |             ^
      |             ;
   30 |  cout<<72<<endl;
      |  ~~~~