Language: C++

V#include <bits/stdc++.h>

using namespace std;
using ll =long long;
using db = double;

template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return true; } return false; }
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return true; } return false; }

#define che(a,string) cout<<"//"<<string <<"=="<<(a)<<"//" <<endl;
#define SORT(a) sort((a).begin(),(a).end())
#define rSORT(a) reverse((a).begin(),(a).end())
#define For(i, a, b)    for(int i = (a) ; i < (b) ; ++i)
#define rep(i, n)       For(i, 0, n)
#define leftunique(v) SORT(v);(v).erase(unique((v).begin(),(v).end()),(v).end())
//leftuniqueは配列から同じ要素のものを取り除く 例 4 6 2 1 3 4 1 2 なら 1 2 3 4 6 になる
bool IsInt(double a){int b = a/1;if(a==b){return true;}else {return false;}}
bool coY() {cout <<"Yes"<<endl;}
bool coN(){cout <<"No"<<endl;}
const ll mod = 1e9 + 7;
const ll INF = 1LL << 60;


//ここから書き始める
int main()
{
	ll n;
	ll m;
	vector<ll> dp(100100,0);

	//dpの初期化
	cin >> n >>m;
	dp[0] = dp[1] = 1;
	rep(i,m){
		ll broken_stair;
		cin >> broken_stair;
		dp[broken_stair] = -1;
	}

	//dp[i]=-1のとき、計dp[i] = dp[i-2] + dp[i-1]を行ってはいけない。
	for(int i = 2 ; i < n + 1 ; i++){
		if(dp[i]==-1){
			dp[i] = 0;
		}else{
			dp[i] = dp[i-1]+dp[i-2];
		}
	}
	cout <<dp[n]%mod <<endl;
}


Compiler output:
a.cc:1:2: error: stray '#' in program
    1 | V#include <bits/stdc++.h>
      |  ^
a.cc:1:1: error: 'V' does not name a type
    1 | V#include <bits/stdc++.h>
      | ^
a.cc: In function 'bool coY()':
a.cc:18:13: error: 'cout' was not declared in this scope
   18 | bool coY() {cout <<"Yes"<<endl;}
      |             ^~~~
a.cc:18:27: error: 'endl' was not declared in this scope
   18 | bool coY() {cout <<"Yes"<<endl;}
      |                           ^~~~
a.cc:18:32: warning: no return statement in function returning non-void [-Wreturn-type]
   18 | bool coY() {cout <<"Yes"<<endl;}
      |                                ^
a.cc: In function 'bool coN()':
a.cc:19:12: error: 'cout' was not declared in this scope
   19 | bool coN(){cout <<"No"<<endl;}
      |            ^~~~
a.cc:19:25: error: 'endl' was not declared in this scope
   19 | bool coN(){cout <<"No"<<endl;}
      |                         ^~~~
a.cc:19:30: warning: no return statement in function returning non-void [-Wreturn-type]
   19 | bool coN(){cout <<"No"<<endl;}
      |                              ^
a.cc: In function 'int main()':
a.cc:29:9: error: 'vector' was not declared in this scope
   29 |         vector<ll> dp(100100,0);
      |         ^~~~~~
a.cc:29:18: error: expected primary-expression before '>' token
   29 |         vector<ll> dp(100100,0);
      |                  ^
a.cc:29:20: error: 'dp' was not declared in this scope; did you mean 'db'?
   29 |         vector<ll> dp(100100,0);
      |                    ^~
      |                    db
a.cc:32:9: error: 'cin' was not declared in this scope
   32 |         cin >> n >>m;
      |         ^~~
a.cc:48:9: error: 'cout' was not declared in this scope
   48 |         cout <<dp[n]%mod <<endl;
      |         ^~~~
a.cc:48:28: error: 'endl' was not declared in this scope
   48 |         cout <<dp[n]%mod <<endl;
      |                            ^~~~