运行 ID: 41296

Main.cc:2:1: error: ‘include’ does not name a type
 include
 ^~~~~~~
Main.cc: In function ‘int main()’:
Main.cc:8:9: error: ‘cin’ was not declared in this scope
         cin>>n;
         ^~~
Main.cc:8:9: note: suggested alternative:
In file included from Main.cc:1:0:
/usr/include/c++/7/iostream:60:18: note:   ‘std::cin’
   extern istream cin;  /// Linked to standard input
                  ^~~
Main.cc:9:22: error: ‘cnt’ was not declared in this scope
         if(n%2==1) a[cnt++]=n;
                      ^~~
Main.cc:9:22: note: suggested alternative: ‘cnt2’
         if(n%2==1) a[cnt++]=n;
                      ^~~
                      cnt2
Main.cc:12:14: error: ‘cnt’ was not declared in this scope
     sort(a,a+cnt,cmp);
              ^~~
Main.cc:12:14: note: suggested alternative: ‘cnt2’
     sort(a,a+cnt,cmp);
              ^~~
              cnt2
Main.cc:12:18: error: ‘cmp’ was not declared in this scope
     sort(a,a+cnt,cmp);
                  ^~~
Main.cc:12:5: error: ‘sort’ was not declared in this scope
     sort(a,a+cnt,cmp);
     ^~~~
Main.cc:12:5: note: suggested alternative: ‘qsort’
     sort(a,a+cnt,cmp);
     ^~~~
     qsort
Main.cc:15:9: error: ‘cout’ was not declared in this scope
         cout<