Language: C++

int main() {int dansuu=1;int N;cin >> N;vector<int> d(N);for(int i=0;i<N;i++){cin >> d.at(i);}sort(d.begin(), d.end());int a=d.at(0);for(int i=0;i<N;i++){if(a!=d.at(i)){dansuu++;a=d.at(i);}else if(a==d.at(i)){continue;}}cout << dansuu << endl;}

Compiler output:
a.cc: In function 'int main()':
a.cc:1:32: error: 'cin' was not declared in this scope
    1 | int main() {int dansuu=1;int N;cin >> N;vector<int> d(N);for(int i=0;i<N;i++){cin >> d.at(i);}sort(d.begin(), d.end());int a=d.at(0);for(int i=0;i<N;i++){if(a!=d.at(i)){dansuu++;a=d.at(i);}else if(a==d.at(i)){continue;}}cout << dansuu << endl;}
      |                                ^~~
a.cc:1:41: error: 'vector' was not declared in this scope
    1 | int main() {int dansuu=1;int N;cin >> N;vector<int> d(N);for(int i=0;i<N;i++){cin >> d.at(i);}sort(d.begin(), d.end());int a=d.at(0);for(int i=0;i<N;i++){if(a!=d.at(i)){dansuu++;a=d.at(i);}else if(a==d.at(i)){continue;}}cout << dansuu << endl;}
      |                                         ^~~~~~
a.cc:1:48: error: expected primary-expression before 'int'
    1 | int main() {int dansuu=1;int N;cin >> N;vector<int> d(N);for(int i=0;i<N;i++){cin >> d.at(i);}sort(d.begin(), d.end());int a=d.at(0);for(int i=0;i<N;i++){if(a!=d.at(i)){dansuu++;a=d.at(i);}else if(a==d.at(i)){continue;}}cout << dansuu << endl;}
      |                                                ^~~
a.cc:1:86: error: 'd' was not declared in this scope
    1 | int main() {int dansuu=1;int N;cin >> N;vector<int> d(N);for(int i=0;i<N;i++){cin >> d.at(i);}sort(d.begin(), d.end());int a=d.at(0);for(int i=0;i<N;i++){if(a!=d.at(i)){dansuu++;a=d.at(i);}else if(a==d.at(i)){continue;}}cout << dansuu << endl;}
      |                                                                                      ^
a.cc:1:100: error: 'd' was not declared in this scope
    1 | int main() {int dansuu=1;int N;cin >> N;vector<int> d(N);for(int i=0;i<N;i++){cin >> d.at(i);}sort(d.begin(), d.end());int a=d.at(0);for(int i=0;i<N;i++){if(a!=d.at(i)){dansuu++;a=d.at(i);}else if(a==d.at(i)){continue;}}cout << dansuu << endl;}
      |                                                                                                    ^
a.cc:1:95: error: 'sort' was not declared in this scope; did you mean 'short'?
    1 | int main() {int dansuu=1;int N;cin >> N;vector<int> d(N);for(int i=0;i<N;i++){cin >> d.at(i);}sort(d.begin(), d.end());int a=d.at(0);for(int i=0;i<N;i++){if(a!=d.at(i)){dansuu++;a=d.at(i);}else if(a==d.at(i)){continue;}}cout << dansuu << endl;}
      |                                                                                               ^~~~
      |                                                                                               short
a.cc:1:221: error: 'cout' was not declared in this scope
    1 | int main() {int dansuu=1;int N;cin >> N;vector<int> d(N);for(int i=0;i<N;i++){cin >> d.at(i);}sort(d.begin(), d.end());int a=d.at(0);for(int i=0;i<N;i++){if(a!=d.at(i)){dansuu++;a=d.at(i);}else if(a==d.at(i)){continue;}}cout << dansuu << endl;}
      |                                                                                                                                                                                                                             ^~~~
a.cc:1:239: error: 'endl' was not declared in this scope
    1 | int main() {int dansuu=1;int N;cin >> N;vector<int> d(N);for(int i=0;i<N;i++){cin >> d.at(i);}sort(d.begin(), d.end());int a=d.at(0);for(int i=0;i<N;i++){if(a!=d.at(i)){dansuu++;a=d.at(i);}else if(a==d.at(i)){continue;}}cout << dansuu << endl;}
      |                                                                                                                                                                                                                                               ^~~~