Language: C++

#include<bits/stdc++.h>
typedef long long ll
using namespace std ;
 
int main() {
    int N;
    cin>>N;
    int M;
    cin>>M;
    unordered_set<int> ob;
    vector<ll> dp(N); 
    for(int i=0;i<M;i++){
       	int tmp;
        cin>>tmp;
        ob.insert(tmp);
    }
  	dp[0]=1;
    dp[1]=ob.count(1)>0?0:1;
    for(int i=2;i<N;i++){
    	if(ob.count(i)>0)
          dp[i]=0;
      	else{
        	dp[i]=dp[i-1]+dp[i-2]
        }
    }
  	cout<<(dp.back()%1000000007)<<endl;
    return 0;
}

Compiler output:
a.cc:3:1: error: expected initializer before 'using'
    3 | using namespace std ;
      | ^~~~~
a.cc: In function 'int main()':
a.cc:7:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |     cin>>N;
      |     ^~~
      |     std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:10:5: error: 'unordered_set' was not declared in this scope
   10 |     unordered_set<int> ob;
      |     ^~~~~~~~~~~~~
a.cc:10:5: note: suggested alternatives:
In file included from /usr/include/c++/14/unordered_set:41,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:189:
/usr/include/c++/14/bits/unordered_set.h:104:11: note:   'std::unordered_set'
  104 |     class unordered_set
      |           ^~~~~~~~~~~~~
/usr/include/c++/14/unordered_set:65:13: note:   'std::pmr::unordered_set'
   65 |       using unordered_set
      |             ^~~~~~~~~~~~~
a.cc:10:19: error: expected primary-expression before 'int'
   10 |     unordered_set<int> ob;
      |                   ^~~
a.cc:11:5: error: 'vector' was not declared in this scope
   11 |     vector<ll> dp(N);
      |     ^~~~~~
a.cc:11:5: note: suggested alternatives:
In file included from /usr/include/c++/14/vector:66,
                 from /usr/include/c++/14/functional:64,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:53:
/usr/include/c++/14/bits/stl_vector.h:428:11: note:   'std::vector'
  428 |     class vector : protected _Vector_base<_Tp, _Alloc>
      |           ^~~~~~
/usr/include/c++/14/vector:93:13: note:   'std::pmr::vector'
   93 |       using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>;
      |             ^~~~~~
a.cc:11:12: error: 'll' was not declared in this scope
   11 |     vector<ll> dp(N);
      |            ^~
a.cc:11:16: error: 'dp' was not declared in this scope; did you mean 'dup'?
   11 |     vector<ll> dp(N);
      |                ^~
      |                dup
a.cc:15:9: error: 'ob' was not declared in this scope
   15 |         ob.insert(tmp);
      |         ^~
a.cc:18:11: error: 'ob' was not declared in this scope
   18 |     dp[1]=ob.count(1)>0?0:1;
      |           ^~
a.cc:26:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   26 |         cout<<(dp.back()%1000000007)<<endl;
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:26:39: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   26 |         cout<<(dp.back()%1000000007)<<endl;
      |                                       ^~~~
      |                                       std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~