criyle/codenet-compile-errors huggingface dataset:
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  long long int n,m;
  cin >> n >> m;
  vector<long long int> ans(n+1);
  vevtor<int> a(m);
  for (int i=0; i<m; i++){
    cin >> a[i];
  }
  int atenji=0;
  for (int i=1; i<n;i++){
    if(i=a[atenji]){
      atenji++;
      ans[i] = 0;
      continue;
    }
    else if(i=1){
      ans[i]=1;
    }
    else if(i=2){
      ans[i]=ans[i]+1;
    }
    else {
      ans[i] = ans[i-1] + ans[i-2];
    }
    ans[i] %= 1000000007
  }
  cout << ans[n]%1000000007;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'vevtor' was not declared in this scope
    7 |   vevtor<int> a(m);
      |   ^~~~~~
a.cc:7:10: error: expected primary-expression before 'int'
    7 |   vevtor<int> a(m);
      |          ^~~
a.cc:9:12: error: 'a' was not declared in this scope
    9 |     cin >> a[i];
      |            ^
a.cc:13:10: error: 'a' was not declared in this scope
   13 |     if(i=a[atenji]){
      |          ^
a.cc:27:25: error: expected ';' before '}' token
   27 |     ans[i] %= 1000000007
      |                         ^
      |                         ;
   28 |   }
      |   ~
Language: C++

#include<iostream>
#include<vector>
#include<string>
#include<algorithm>

using namespace std;

int main(){
  int N,M;
  cin>>N>>M;
  vector<long long> a(N+1,0);
  vector<int> noentry(M,0);
  for(int i=0; i<M;i++){
    cin>>noentry[i];
  }
  sort.(noentry.begin(),noentry.end());
  a[0]=1;
  if(M!=0){
    a[noentry[0]]=-1;
    for(int i=1; i<noentry.size(); i++){
      if(noentry[i]-1==noentry[i-1]){
        cout<<0<<endl;
        return 0;
      }
      a[noentry[i]]=-1;
    }
  }
  
  if(a[1]==0){
    a[1]=1;
  }
  for(int i=2; i<a.size(); i++){
    if(a[i]==-1) continue;
    if(a[i-1]==-1){ a[i] = a[i-2]; continue;}
    if(a[i-2]==-1){ a[i] = a[i-1]; continue;}
    a[i] = a[i-1] + a[i-2];
  }
  cout<<a.back()%1000000007<<endl;
  return 0;
}
  


Compiler output:
a.cc: In function 'int main()':
a.cc:16:8: error: expected unqualified-id before '(' token
   16 |   sort.(noentry.begin(),noentry.end());
      |        ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
const long long mod=1e9+7;

int main(){
  int n,m; cin>>n >>m;
  vector<int>oks(n+1,true);
  for(int i=0;i<m;i++){
    int a; cin>>a;
    oks[a]=false;
  }
  vector<long long int>dp(n+1);
  dp[0]=1;
  for(int now=0;now<n;n++){
    for(int next=now+1;next<=min(n,now+2);next++){
      if(oks[next]){
        dp[next]+=dp[npw];
        dp[next]%=mod;
      }
    }
  }
  cout<<dp[n]<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:22: error: 'npw' was not declared in this scope; did you mean 'now'?
   17 |         dp[next]+=dp[npw];
      |                      ^~~
      |                      now
Language: C++

#include <iostream>
#include <vector>
#include <cmath>
#include <algorithm>
#include <string>
#include <sstream>
#include <utility>
#define ll long long int
#define rep(i,x,y) for(int i=x;i<y;i++)
#define rel(i,x,y) for(int i=x-1;i>=y;i--)
#define all(x) x.begin(),x.end()
#define MOD 1e9+7
using namespace std;

int main(){
	int N,M;
	cin >>N>>M;
	bool a[N]={};
	ll dp[N+1] = {};
	rep(i,0,M){
		int tmp;
		cin >> tmp;
		a[tmp] = true;
	}	
	dp[0] = 1;
	rep(i,0,N){
		rep(j,i+1,min(N+1,i+3)){
			if(!a[j]){
				dp[j] += dp[i];
				dp[j] %= MOD;
			}
		}
	}
	cout << dp[N] << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:30:39: error: invalid operands of types 'long long int' and 'double' to binary 'operator%'
   30 |                                 dp[j] %= MOD;
      |                                       ^
a.cc:30:39: note:   in evaluation of 'operator%=(long long int, double)'
Language: C++

#include <bits/stdc++.h>
using namespace std;

//typedef
//------------------------------------------
typedef vector<int> VI;
typedef vector<VI> VVI;
typedef vector<string> VS;
typedef pair<int, int> PII;
typedef long long LL;

//container util
//------------------------------------------
#define ALL(a)  (a).begin(),(a).end()
#define RALL(a) (a).rbegin(), (a).rend()
#define PB push_back
#define MP make_pair
#define SZ(a) int((a).size())
#define EACH(i,c) for(typeof((c).begin()) i=(c).begin(); i!=(c).end(); ++i)
#define EXIST(s,e) ((s).find(e)!=(s).end())
#define SORT(c) sort((c).begin(),(c).end())

//repetition
//------------------------------------------
#define FOR(i,a,b) for(int i=(a);i<(b);++i)
#define REP(i,n)  FOR(i,0,n)

 
int main() {
  int N, M;
  cin >> N >> M;
  vector<LL> A(N+1,1);
  REP(i,M) {
    int b;
    cin >> b;
    A,at(b) = 0;
  }
  REP(i,N-1) {
    if (A.at(i+2) != 0) {
      A.at(i+2) = A.at(i) + A.at(i+1);
      A.at(i+2) %= 1000000007;
    }
  }
  cout << A.at(N) << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:36:7: error: 'at' was not declared in this scope
   36 |     A,at(b) = 0;
      |       ^~
Language: C++

#include <iostream>
#include <vector>
using namespace std;

int main(){
  int n;
  vector<int> dp(n+2);
  vector<int> broken(n+1);
  
  for (int i=1;i<n,i++){
    int a;
    cin >> a;
    broken[a] = 1;
  }
  
  const int mod = 1000000007;
  dp[n] = 1;
  dp[n+1] = 1;
  for (int i=n-1;i>=0;i--){
    if (broken[i]){
      dp[i]=0;
      continue;
    }
    dp[i] = (dp[i+1]+dp[i+2])%mod;
  }
  cout << dp[0] << endl;
}
  


Compiler output:
a.cc: In function 'int main()':
a.cc:10:23: error: expected ';' before ')' token
   10 |   for (int i=1;i<n,i++){
      |                       ^
      |                       ;
Language: C++

#include <iostream>
#include <vector>
using namespace std;

int main(){
  int n;
  vector<int> dp(n+2);
  vector<int> broken(n+1);
  
  for (i=1;i<n,i++){
    int a;
    cin >> a;
    broken[a] = 1;
  }
  
  const int mod = 1000000007;
  for (i=n-1;i<=0;i--){
    if (broken[i]){
      dp[i]=0;
      continue;
    }
    dp[i] = dp[i+1]+dp[i+2]%mod;
  }
  cout << dp[0] << endl;
}
  


Compiler output:
a.cc: In function 'int main()':
a.cc:10:8: error: 'i' was not declared in this scope
   10 |   for (i=1;i<n,i++){
      |        ^
a.cc:10:19: error: expected ';' before ')' token
   10 |   for (i=1;i<n,i++){
      |                   ^
      |                   ;
a.cc:17:8: error: 'i' was not declared in this scope
   17 |   for (i=n-1;i<=0;i--){
      |        ^
Language: C++

#include <iostream>
using namespace std;

int main(){
  int n;
  vector<int> dp(n+2);
  vector<int> broken(n+1);
  
  for (i=1;i<n,i++){
    int a;
    cin >> a;
    broken[a] = 1;
  }
  
  const int mod = 1000000007;
  for (i=n-1;i<=0;i--){
    if (broken[i]){
      dp[i]=0;
      continue;
    }
    dp[i] = dp[i+1]+dp[i+2]%mod;
  }
  cout << dp[0] << endl;
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'vector' was not declared in this scope
    6 |   vector<int> dp(n+2);
      |   ^~~~~~
a.cc:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    1 | #include <iostream>
  +++ |+#include <vector>
    2 | using namespace std;
a.cc:6:10: error: expected primary-expression before 'int'
    6 |   vector<int> dp(n+2);
      |          ^~~
a.cc:7:10: error: expected primary-expression before 'int'
    7 |   vector<int> broken(n+1);
      |          ^~~
a.cc:9:8: error: 'i' was not declared in this scope
    9 |   for (i=1;i<n,i++){
      |        ^
a.cc:9:19: error: expected ';' before ')' token
    9 |   for (i=1;i<n,i++){
      |                   ^
      |                   ;
a.cc:12:5: error: 'broken' was not declared in this scope
   12 |     broken[a] = 1;
      |     ^~~~~~
a.cc:16:8: error: 'i' was not declared in this scope
   16 |   for (i=n-1;i<=0;i--){
      |        ^
a.cc:17:9: error: 'broken' was not declared in this scope
   17 |     if (broken[i]){
      |         ^~~~~~
a.cc:18:7: error: 'dp' was not declared in this scope
   18 |       dp[i]=0;
      |       ^~
a.cc:21:5: error: 'dp' was not declared in this scope
   21 |     dp[i] = dp[i+1]+dp[i+2]%mod;
      |     ^~
a.cc:23:11: error: 'dp' was not declared in this scope
   23 |   cout << dp[0] << endl;
      |           ^~
Language: C++

input1.txt input
6 1 3
input1.txt output
4
6 ms erasped

input2.txt input
10 2 4 5
input2.txt output
0
7 ms erasped

input3.txt input
100 5 1 23 45 67 89
input3.txt output
608200469
6 ms erasped



Compiler output:
a.cc:1:1: error: 'input1' does not name a type
    1 | input1.txt input
      | ^~~~~~
Language: C++

// 129-C
// Typical Stairs
 
#include <iostream>
#include <vector>
using namespace std;
 
int main()
{
    cin.tie(0);
   	ios::sync_with_stdio(false);
 
    int N;
    int M;
 
    cin >> N >> M;
 
    vector<int> a;
 
    for (int i = 0; i < M; i++)
    {
        int a_;
 
        cin >> a_;
 
        // cout << a.size() << endl;
 
        a.push_back(a_);
    }
 
    long stairs[N + 1];
    stairs[0] = 1;
 
    if (count(a.begin(), a.end(), 1) == 1 && count(a.begin(), a.end(), 2) != 1)
    {
        stairs[1] = 0;
        stairs[2] = 1;
    }
 
    else if (count(a.begin(), a.end(), 1) != 1 && count(a.begin(), a.end(), 2) == 1)
    {
        stairs[1] = 1;
        stairs[2] = 0;
    }
 
    else if (count(a.begin(), a.end(), 1) == 1 && count(a.begin(), a.end(), 2) == 1)
    {
        stairs[1] = 0;
        stairs[2] = 0;
    }
 
    else
    {
        stairs[1] = 1;
        stairs[2] = 2;
    }
 
    for (int i = 0; i < N + 1; i++)
    {
        if (count(a.begin(), a.end(), i) == 1)
        {
            stairs[i] = 0;
        }
 
        else if (i > 2)
        {
            stairs[i] = (stairs[i - 1] + stairs[i - 2]) % 1000000007;
        }
        
    }
    
   cout << stairs[N] % 1000000007 << endl;

Compiler output:
a.cc: In function 'int main()':
a.cc:34:9: error: 'count' was not declared in this scope
   34 |     if (count(a.begin(), a.end(), 1) == 1 && count(a.begin(), a.end(), 2) != 1)
      |         ^~~~~
a.cc:60:13: error: 'count' was not declared in this scope
   60 |         if (count(a.begin(), a.end(), i) == 1)
      |             ^~~~~
a.cc:72:43: error: expected '}' at end of input
   72 |    cout << stairs[N] % 1000000007 << endl;
      |                                           ^
a.cc:9:1: note: to match this '{'
    9 | {
      | ^
Language: C++

// 129-C
// Typical Stairs
 
#include <iostream>
#include <vector>
using namespace std;
 
int main()
{
    cin.tie(0);
   	ios::sync_with_stdio(false);
 
    int N;
    int M;
 
    cin >> N >> M;
 
    vector<int> a;
 
    for (int i = 0; i < M; i++)
    {
        int a_;
 
        cin >> a_;
 
        // cout << a.size() << endl;
 
        a.push_back(a_);
    }
 
    long stairs[N + 1];
    stairs[0] = 1;
 
    if (count(a.begin(), a.end(), 1) == 1 && count(a.begin(), a.end(), 2) != 1)
    {
        stairs[1] = 0;
        stairs[2] = 1;
    }
 
    else if (count(a.begin(), a.end(), 1) != 1 && count(a.begin(), a.end(), 2) == 1)
    {
        stairs[1] = 1;
        stairs[2] = 0;
    }
 
    else if (count(a.begin(), a.end(), 1) == 1 && count(a.begin(), a.end(), 2) == 1)
    {
        stairs[1] = 0;
        stairs[2] = 0;
    }
 
    else
    {
        stairs[1] = 1;
        stairs[2] = 2;
    }
 
    for (int i = 0; i < N + 1; i++)
    {
        if (count(a.begin(), a.end(), i) == 1)
        {
            stairs[i] = 0;
        }
 
        else if (i > 2)
        {
            stairs[i] = (stairs[i - 1] + stairs[i - 2]) % 1000000007;
        }
        
    }
    
   cout << stairs[N] % 1000000007 << endl;;

Compiler output:
a.cc: In function 'int main()':
a.cc:34:9: error: 'count' was not declared in this scope
   34 |     if (count(a.begin(), a.end(), 1) == 1 && count(a.begin(), a.end(), 2) != 1)
      |         ^~~~~
a.cc:60:13: error: 'count' was not declared in this scope
   60 |         if (count(a.begin(), a.end(), i) == 1)
      |             ^~~~~
a.cc:72:44: error: expected '}' at end of input
   72 |    cout << stairs[N] % 1000000007 << endl;;
      |                                            ^
a.cc:9:1: note: to match this '{'
    9 | {
      | ^
Language: C

#include<bits/stdc++.h>
using namespace std;
const long long mod=1e9+7;

int main(){
    int N, M;
    cin >> N >> M;
    
    // 段
    vector<int> oks(N+1, true);
    for(int i = 0; i < M; i++){
        int a; cin >> a;
        // 壊れている段
        oks[a] = false;
    }

    // 計算
    vector<long long int> dp(N+1, 0);
    dp[0] = 1;
    for(int now = 0; now <= N; now++){
        for(int next = now + 1; next <= min(N, now + 2); next++){
            if(oks[next]){
                dp[next] += dp[now];
                dp[next] %= mod;
            }
        }
    }

    cout << dp[N] << endl;

    return 0;
}

Compiler output:
main.c:1:9: fatal error: bits/stdc++.h: No such file or directory
    1 | #include<bits/stdc++.h>
      |         ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

include<bits/stdc++.h>
using namespace std;
#define ll long long int  

ll mod = 1000000007;

ll add( ll x, ll y){
  ll wa = ( (x % mod) + (y % mod) ) % mod;
  return wa;
}
int main(){
  ll n,m;
  cin >> n >> m;
  set<ll> broken;
  for ( int i = 0; i < m; ++i ) {
    ll a;cin >> a;
    broken.insert(a);
  }
  vector<int> dp(n+5);
  dp[0] = 1;
  for ( ll i = 1; i <= n; ++i ) {
    if( broken.count(i) ) {
      dp[i] = 0;
    } else {
      dp[i] = (add(dp[i - 1], dp[i - 2]) % mod);
    }
  }

  cout << dp[n] % mod<< endl;
  return 0;
}


Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:13:3: error: 'cin' was not declared in this scope
   13 |   cin >> n >> m;
      |   ^~~
a.cc:14:3: error: 'set' was not declared in this scope
   14 |   set<ll> broken;
      |   ^~~
a.cc:3:12: error: expected primary-expression before 'long'
    3 | #define ll long long int
      |            ^~~~
a.cc:14:7: note: in expansion of macro 'll'
   14 |   set<ll> broken;
      |       ^~
a.cc:17:5: error: 'broken' was not declared in this scope
   17 |     broken.insert(a);
      |     ^~~~~~
a.cc:19:3: error: 'vector' was not declared in this scope
   19 |   vector<int> dp(n+5);
      |   ^~~~~~
a.cc:19:10: error: expected primary-expression before 'int'
   19 |   vector<int> dp(n+5);
      |          ^~~
a.cc:20:3: error: 'dp' was not declared in this scope
   20 |   dp[0] = 1;
      |   ^~
a.cc:22:9: error: 'broken' was not declared in this scope
   22 |     if( broken.count(i) ) {
      |         ^~~~~~
a.cc:29:3: error: 'cout' was not declared in this scope
   29 |   cout << dp[n] % mod<< endl;
      |   ^~~~
a.cc:29:25: error: 'endl' was not declared in this scope
   29 |   cout << dp[n] % mod<< endl;
      |                         ^~~~
Language: C++

#include <iostream>
using namespace std;
#define MOD 1000000007
int main()
{
	// 入力
    int n , m;
    cin >>n >>m;
    int l, i=0, a[m];
    while(cin>>l){
        a[i] = l;
        i++;
    }
  	// 計算
    int j = 2;
    int k = 1;
    int c[n];
    int kekka;
    c[0] = 1;
    c[1] = 1; 
    for(j;j<=n;j++){
    	if (j =! a[k] ){
        	c[j] = c[j-1] + c[j-2];
        }
        if (j == a[k]){
        	k =k +1;
        }
    }
    kekka = c[n]%MOD;
    cout << kekka;
	}
    return 0;
}

Compiler output:
a.cc:32:5: error: expected unqualified-id before 'return'
   32 |     return 0;
      |     ^~~~~~
a.cc:33:1: error: expected declaration before '}' token
   33 | }
      | ^
Language: C++

#include <iostream>
using namespace std;

int main(){
  int N,M;
  cin >> N >> M;
  vector<int> broken<N>;
  
  for (int i=0;i<M<i++){
    int a;
    cin >> a;
    broken[a] = 1;
  }
  
  vector<int> dp<N+1>;
  const int mod =1000000007;
  dp[N]=1;
  for (int i=N-1;N>=0;i--){
    if (broken[i]){
      dp[i]=0;
      continue;
    }
    dp[i] = dp[i+1]+dp[i+2]%mod;
  }
  cout << dp[0] <<endl;
}
  
  
  

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'vector' was not declared in this scope
    7 |   vector<int> broken<N>;
      |   ^~~~~~
a.cc:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    1 | #include <iostream>
  +++ |+#include <vector>
    2 | using namespace std;
a.cc:7:10: error: expected primary-expression before 'int'
    7 |   vector<int> broken<N>;
      |          ^~~
a.cc:9:23: error: expected ';' before ')' token
    9 |   for (int i=0;i<M<i++){
      |                       ^
      |                       ;
a.cc:12:5: error: 'broken' was not declared in this scope
   12 |     broken[a] = 1;
      |     ^~~~~~
a.cc:15:10: error: expected primary-expression before 'int'
   15 |   vector<int> dp<N+1>;
      |          ^~~
a.cc:17:3: error: 'dp' was not declared in this scope
   17 |   dp[N]=1;
      |   ^~
a.cc:19:9: error: 'broken' was not declared in this scope
   19 |     if (broken[i]){
      |         ^~~~~~
Language: C++

#include<iostream>
#include<vector>

using namespace std;

const long long mod=1e9+7;

int main(){
        long long N, M; cin >> N >> M;

        vector<long long> oks(M+1, true);
        for(int i=0; i<M; ++i){
                int a;cin >> a;
                oks[a]=false;
        }
        vector<long long> dp(N+1);
        dp[0]=1;
        for(int now=0; now<N; ++now){
                for(int next=now+1; next<min(N, now+2);++next){
                        if(oks[next]){
                                dp[next]+=dp[now];
                                dp[next]%=mod;
                        }
                }
        }

        cout << dp[N] << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:45: error: no matching function for call to 'min(long long int&, int)'
   19 |                 for(int next=now+1; next<min(N, now+2);++next){
      |                                          ~~~^~~~~~~~~~
In file included from /usr/include/c++/14/string:51,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:233:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)'
  233 |     min(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:233:5: note:   template argument deduction/substitution failed:
a.cc:19:45: note:   deduced conflicting types for parameter 'const _Tp' ('long long int' and 'int')
   19 |                 for(int next=now+1; next<min(N, now+2);++next){
      |                                          ~~~^~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:281:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare)'
  281 |     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:281:5: note:   candidate expects 3 arguments, 2 provided
Language: C++

#include <iostream>
#include <vector>
using namespace std;

int main() {
  int n, m;
  cin >> n >> m;
  vector<bool> boroken(n+1);
  for(int i = 0; i < m; i++) {
    int a;
    cin >> a;
    boroken[a] = true;
  }
  vector<int> dp(n+1);
  const int mod = 1000000007;
  dp[n] = 1;
  if(boroken[i]) dp[n-1] = 0;
  else dp[n-1] = 1;
  for(int i = n-2; i >= 0; i--) {
    if(boroken[i]) {
      dp[i] = 0;
      continue;
    }
    dp[i] = (dp[i+1] + dp[i+2]) % mod;
  }
  cout << dp[0]<< endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:14: error: 'i' was not declared in this scope
   17 |   if(boroken[i]) dp[n-1] = 0;
      |              ^
Language: C++

#include <iostream>
#include <vector>

#define MOD 1e9+7

using namespace std;

int main()
{
    int n, m;
    cin >> n >> m;

    vector<int>oks(n+1, 1);
    for (int i = 0; i < m; ++i) {
        int a; cin >> a;
        oks[a] = false;
    }

    vector<long long int>dp(n+1);
    dp[0] = 1;
    for (int i = 0; i < n; ++i) {
        for (int j = i + 1; j <= min(n, i + 2); ++i) {
            if (oks[j]) {
                dp[j] += dp[i];
            }
        }
    }

    cout << dp[N] << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:29:16: error: 'N' was not declared in this scope
   29 |     cout << dp[N] << endl;
      |                ^
Language: C++

#include <iostream>
#include <vector>

#define MOD 1e9+7

using namespace std;

int main()
{
    int n, m;
    cin >> n >> m;

    vector<int>oks(n+1, 1);
    for (int i = 0; i < m, ++i) {
        int a; cin >> a;
        oks[a] = false;
    }

    vector<long long int>dp(N+1);
    dp[0] = 1;
    for (int i = 0; i < n; ++i) {
        for (int j = i + 1; j <= min(n, i + 2); ++i) {
            if (oks[j]) {
                dp[j] += dp[i];
            }
        }
    }

    cout << dp[N] << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:31: error: expected ';' before ')' token
   14 |     for (int i = 0; i < m, ++i) {
      |                               ^
      |                               ;
a.cc:19:29: error: 'N' was not declared in this scope
   19 |     vector<long long int>dp(N+1);
      |                             ^
Language: C++

#include <iostream>
using namespace std;

int main() {
  int n, m;
  cin >> n >> m;
  vector<bool> boroken(n+1);
  for(int i = 0; i < n; i++) {
    int a;
    cin >> a;
    boroken[a] = true;
  }
  vector<int> dp(n+2);
  const int mod = 1000000007;
  dp[n] = 1;
  for(int i = n-1; i <= 0; i--) {
    if(boroken[i]) {
      dp[i] = 0;
      continue;
    }
    dp[i] = (dp[i+1] + dp[i+2]);
  }
  cout << dp[0] % mod << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'vector' was not declared in this scope
    7 |   vector<bool> boroken(n+1);
      |   ^~~~~~
a.cc:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    1 | #include <iostream>
  +++ |+#include <vector>
    2 | using namespace std;
a.cc:7:10: error: expected primary-expression before 'bool'
    7 |   vector<bool> boroken(n+1);
      |          ^~~~
a.cc:11:5: error: 'boroken' was not declared in this scope
   11 |     boroken[a] = true;
      |     ^~~~~~~
a.cc:13:10: error: expected primary-expression before 'int'
   13 |   vector<int> dp(n+2);
      |          ^~~
a.cc:15:3: error: 'dp' was not declared in this scope
   15 |   dp[n] = 1;
      |   ^~
a.cc:17:8: error: 'boroken' was not declared in this scope
   17 |     if(boroken[i]) {
      |        ^~~~~~~
Language: C++

#include<iostream>
#include<string>
#include<vector>
#include<stdio.h>
#include <algorithm>

using namespace std;
#define MAX 1000000007
vector<int>memo;
memo[0] = 0;
memo[1] = 1;
int b[N];

int dp(int N){
    if(N == 0 || b[N] == -1)return 0;
    else if(memo[N]!= 0)return memo[N];
    else return dp[i-1] + dp[i-2];
}
int main(){
    int N,M;
    cin >> N >> M;
    int a[M];
    int b[N+2];
    dp[0] = 1;
    for(int i = 0;i < M;i++){
        cin >> a[i];
        b[a[i]] = -1;
    }
    
    
    cout << dp[N]%MAX << endl;

}

Compiler output:
a.cc:10:1: error: 'memo' does not name a type
   10 | memo[0] = 0;
      | ^~~~
a.cc:11:1: error: 'memo' does not name a type
   11 | memo[1] = 1;
      | ^~~~
a.cc:12:7: error: 'N' was not declared in this scope
   12 | int b[N];
      |       ^
a.cc: In function 'int dp(int)':
a.cc:15:18: error: 'b' was not declared in this scope
   15 |     if(N == 0 || b[N] == -1)return 0;
      |                  ^
a.cc:17:20: error: 'i' was not declared in this scope
   17 |     else return dp[i-1] + dp[i-2];
      |                    ^
a.cc: In function 'int main()':
a.cc:24:9: warning: pointer to a function used in arithmetic [-Wpointer-arith]
   24 |     dp[0] = 1;
      |         ^
a.cc:24:11: error: assignment of read-only location '* dp'
   24 |     dp[0] = 1;
      |     ~~~~~~^~~
a.cc:31:17: warning: pointer to a function used in arithmetic [-Wpointer-arith]
   31 |     cout << dp[N]%MAX << endl;
      |                 ^
a.cc:31:18: error: invalid operands of types 'int(int)' and 'int' to binary 'operator%'
   31 |     cout << dp[N]%MAX << endl;
      |             ~~~~~^
      |                 |
      |                 int(int)
Language: C++

#include <bits/stdc++.h>
using namespace std;

using ll = long long;
using ull = unsigned long long;
using ld = long double;
#define FOR(NAME, START, NUM) for (ll NAME = START; NAME < (NUM); NAME++)
#define REP(NAME, NUM) for (ll NAME = 0; NAME < (NUM); NAME++)
#define BREP(NAME, NUM) for (ll NAME = (NUM)-1; NAME >= 0; NAME--)
#define ALL(NAME) (NAME).begin(), (NAME).end()
const ll INF =1000000000000000;

ll n,m,num,ans=0,pre = -1;
vector<ll> x(0);

void nya(int start){
  if(x.at(start) == 0 && start < n){
    ans++;
    if(ans >= 1000000007)
      ans %= 1000000007;
    nya(start+1);
    nya(start+2);
  }
  else{
    return;
  }
}

int main(){
  cin >> n >> m;
  REP(i,n){
    x.push_back(0)
  }
  REP(i,m){
    cin >> num;
    if(num - pre == 1){
      cout<<0<<endl;
      return 0;
    }
    pre = num;
    x.at(num) = 1;
  }
  nya(0);
  cout<<ans<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:32:19: error: expected ';' before '}' token
   32 |     x.push_back(0)
      |                   ^
      |                   ;
   33 |   }
      |   ~
Language: C

#include<bits/stdc++.h> using namespace std;
const long long mod=1e9+7;
int main(){ int N,M;
cin>>N>>M;
vector<int>oks(N+1,true); for(int i=0;i<M;++i){
int a;cin>>a;
oks[a]=false; }
vector<long long int>dp(N+1); dp[0]=1;
for(int now=0;now<N;++now){
for(int next=now+1;next<=min(N,now+2);++next){ if(oks[next]){
} }
cout<<dp[N]<<endl;
return 0; }
dp[next]+=dp[now];
dp[next]%=mod; }

Compiler output:
main.c:1:25: warning: extra tokens at end of #include directive
    1 | #include<bits/stdc++.h> using namespace std;
      |                         ^~~~~
main.c:1:9: fatal error: bits/stdc++.h: No such file or directory
    1 | #include<bits/stdc++.h> using namespace std;
      |         ^~~~~~~~~~~~~~~
compilation terminated.
Language: Java

import java.util.*;
import java.io.*;

public class Main
{
  final int mod = (long)1e9+7;
  int n, m;
  boolean[] a;
  int[] dp;
  
  Main(Scanner in, PrintWriter out)
  {
	n = in.nextInt();
    m = in.nextInt();
    a = new boolean[n+2];
    for (int i = 0; i < m; i++)
      a[in.nextInt()] = true;
    dp = new int[n];
    Arrays.fill(dp, -1);
    out.println(dp(0));
  }
  
  int dp(int at)
  {
    if (at == n) return 1;
    if (at > n) return 0;
    if (dp[at] != -1) return dp[at];
    int cnt = 0;
    if (!a[at+1]) cnt += dp(at+1);
    cnt %= mod;
    if (!a[at+2]) cnt += dp(at+2);
    cnt %= mod;
    return dp[at] = cnt % mod;
  }

  public static void main(String[] args)
  {
    Scanner in = new Scanner(System.in);
    PrintWriter out = new PrintWriter(System.out);
    new	Main(in, out);
    out.close();
  } 
}


Compiler output:
Main.java:6: error: incompatible types: possible lossy conversion from long to int
  final int mod = (long)1e9+7;
                           ^
1 error
Language: Java

import java.util.*;
import java.io.*;

public class Main
{
  final long mod = (long)1e9+7;
  int n, m;
  boolean[] a;
  int[] dp;
  
  Main(Scanner in, PrintWriter out)
  {
	n = in.nextInt();
    m = in.nextInt();
    a = new boolean[n+2];
    for (int i = 0; i < m; i++)
      a[in.nextInt()] = true;
    dp = new int[n];
    Arrays.fill(dp, -1);
    out.println(dp(0));
  }
  
  int dp(int at)
  {
    if (at == n) return 1;
    if (at > n) return 0;
    if (dp[at] != -1) return dp[at];
    int cnt = 0;
    if (!a[at+1]) cnt += dp(at+1);
    cnt %= mod;
    if (!a[at+2]) cnt += dp(at+2);
    cnt %= mod;
    return dp[at] = cnt % mod;
  }

  public static void main(String[] args)
  {
    Scanner in = new Scanner(System.in);
    PrintWriter out = new PrintWriter(System.out);
    new	Main(in, out);
    out.close();
  } 
}


Compiler output:
Main.java:33: error: incompatible types: possible lossy conversion from long to int
    return dp[at] = cnt % mod;
                        ^
1 error
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
const ll mod=1e9+7;
int main()
{
  int n,m;
  scnaf("%d %d",&n,&m);
  ll fib[n];
  fib[1]=1;
  fib[2]=2;
  for(int i=3;i<=n;i++)
  fib[i]=(fib[i-1]+fib[i-2])%mod;
  int val=0;
  ll total=0;
  for(int i=0;i<m;i++)
  {
    int temp;
    scanf("%d",&temp);
    total=(total+fib[temp-1-val])%mod;
    val=temp;
  }
  printf("%lld",total);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'scnaf' was not declared in this scope; did you mean 'scanf'?
    8 |   scnaf("%d %d",&n,&m);
      |   ^~~~~
      |   scanf
Language: C++

#include<iostream>
#include<bits/stdc++.h>
using namespace std;
long long fun(long long i,long long arr[],long long n)
{
    long long sum=0;
    if(n==i)
    {

        return(1);
    }
    if(i>6)
        return(0);
    if(!binary_search(arr,arr+n,i+2))

    sum+=fun(i+2,arr,n);
    if(!binary_search(arr,arr+n,i+1))
    sum+=fun(i+1,arr,n);
    return(sum);

}
int main()
{
   long long n,m;
   cin>>n>>m;
   long long arr[m];
   for(long long i=0;i<m;i++)
    cin>>arr[i];
    long long papu=((fun(0,arr[],n))%1000000007);
    cout<<papu;
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:29:32: error: expected primary-expression before ']' token
   29 |     long long papu=((fun(0,arr[],n))%1000000007);
      |                                ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long int lli;

vector<bool> stairs_table(10100);
vector<lli> dp(10100);
const lli MOD = 1000000007;

int main(){
  for(int i = 0; i < 10100; i++){
    stairs_table.at(i) = true;
    dp.at(i) = 0;
  }
  
  lli n, m;
  cin >> n >> m;

  lli a;
  for(int i = 0; i < m; i++){
    cin >> a;
    stairs_table.at(a) = false;
  }

  dp.at(0) = 1;
  for(int i = 0; i+1 <= n; i++){
    if(!stairs_table.at(i))
      dp.at(i) = 0;
    dp.at(i) %= MOD
    dp.at(i+1) += dp.at(i);
    dp.at(i+2) += dp.at(i);
  }
  
  cout << dp.at(n) % MOD << endl;

}




Compiler output:
a.cc: In function 'int main()':
a.cc:28:20: error: expected ';' before 'dp'
   28 |     dp.at(i) %= MOD
      |                    ^
      |                    ;
   29 |     dp.at(i+1) += dp.at(i);
      |     ~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long int lli;

vector<bool> stairs_table(10100);
vector<lli> dp(10100);

int main(){
  for(int i = 0; i < 10100; i++){
    stairs_table.at(i) = true;
    dp(i) = 0;
  }
  
  lli n, m;
  cin >> n >> m;

  lli a;
  for(int i = 0; i < m; i++){
    cin >> a;
    stairs_table.at(a) = false;
  }

  dp.at(i) = 1;
  for(int i = 0; i+1 <= n; i++){
    if(!stairs_table.at(i))
      dp.at(i) = 0;
    dp.at(i+1) += dp.at(i);
    dp.at(i+2) += dp.at(i);
  }
  
  cout << dp.at(n) % 1000000007 << endl;

}




Compiler output:
a.cc: In function 'int main()':
a.cc:11:7: error: no match for call to '(std::vector<long long int>) (int&)'
   11 |     dp(i) = 0;
      |     ~~^~~
a.cc:23:9: error: 'i' was not declared in this scope
   23 |   dp.at(i) = 1;
      |         ^
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main()
{
  int N, M;
  cin >> N >> M;
  bool broken[N + 1];
  for (int i = 0; i < N; i++)
  {
    int a;
    cin >> a;
    broken[a] = true;
  }
  dp[N + 2];
  const int mod = 1000000007;
  dp[N] = 1;
  for (int i = N - 1; i >= 0; i--)
  {
    if (broken[i])
    {
      dp[i] = 0;
      continue;
    }
    dp[i] = (dp[i + 1] + dp[i + 2]) % mod;
  }
  cout << dp[0] << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:3: error: 'dp' was not declared in this scope; did you mean 'dup'?
   15 |   dp[N + 2];
      |   ^~
      |   dup
Language: C++

(defun memo (fn)
    (declare (optimize (speed 3) (debug 0) (safety 0))
        (type function fn))
    (let ((table (make-hash-table :test 'equal)))
        #'(lambda (&rest rest)
              (multiple-value-bind (val found-p) (gethash rest table)
                  (if found-p
                      val
                      (setf (gethash rest table) (apply fn rest)))))))

(defun memoize (fn-name)
    (declare (optimize (speed 3) (debug 0) (safety 0))
        (type symbol fn-name))
    (setf (symbol-function fn-name) (memo (symbol-function fn-name))))

(defmacro defun-memo (fn args &body body)
    `(memoize (defun ,fn ,args . ,body)))

(defvar *mod* 1000000007)
(defparameter *unuse-lst* '(1 23 45 67 89))

(defun-memo find-element (elem)
    (declare (optimize (speed 3) (debug 0) (safety 0))
        (type fixnum elem))
    (not (null (find elem *unuse-lst*))))

(defun-memo rec (goal now)
    (declare (optimize (speed 3) (debug 0) (safety 0))
        (type fixnum goal now))
    (cond ((eq goal now) 1)
        ((< goal now) 0)
        ((find-element now) 0)
        (t (+ (rec goal (+ 1 now))
               (rec goal (+ 2 now))))))

(defun solve (goal)
    (declare (optimize (speed 3) (debug 0) (safety 0))
        (type fixnum goal))
    (let ((result (the fixnum (rec goal 0))))
        (print (rem result *mod*))))

(let ((goal (read))
         (num (read))
         (lst '()))
    (dotimes (i num)
        (push (read) *unuse-lst*))
    (solve goal))


Compiler output:
a.cc:4:41: warning: missing terminating ' character
    4 |     (let ((table (make-hash-table :test 'equal)))
      |                                         ^
a.cc:4:41: error: missing terminating ' character
    4 |     (let ((table (make-hash-table :test 'equal)))
      |                                         ^~~~~~~~~
a.cc:5:10: warning: missing terminating ' character
    5 |         #'(lambda (&rest rest)
      |          ^
a.cc:5:10: error: invalid preprocessing directive #'(lambda (&rest rest)
    5 |         #'(lambda (&rest rest)
      |          ^~~~~~~~~~~~~~~~~~~~~
a.cc:17:5: error: stray '`' in program
   17 |     `(memoize (defun ,fn ,args . ,body)))
      |     ^
a.cc:20:27: warning: missing terminating ' character
   20 | (defparameter *unuse-lst* '(1 23 45 67 89))
      |                           ^
a.cc:20:27: error: missing terminating ' character
   20 | (defparameter *unuse-lst* '(1 23 45 67 89))
      |                           ^~~~~~~~~~~~~~~~~
a.cc:44:15: warning: missing terminating ' character
   44 |          (lst '()))
      |               ^
a.cc:44:15: error: missing terminating ' character
   44 |          (lst '()))
      |               ^~~~~
a.cc:1:7: error: expected ')' before 'memo'
    1 | (defun memo (fn)
      | ~     ^~~~~
      |       )
Language: C++

#include<iostream>
#include<algorithm>
#include<cmath>
using namespace std;
int main() {
  int n,m,dp[100001],a[100001]={0},b;
  cin >> n >> m;
  for(int i=0; i<m; i++) {
    cin >> b;
    a[b]=1;
  }
  dp[0]=1;
  for(int i=1; i<=n; i++) {
    if(a[i-1]==0) {
      dp[i]+=dp[i-1];
    }
    if(a[i-2]==0) {
      dp[i]+=dp[i-2];
    }
    dp[i]%=1000000007
  }
  cout << dp[n] << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:22: error: expected ';' before '}' token
   20 |     dp[i]%=1000000007
      |                      ^
      |                      ;
   21 |   }
      |   ~
Language: C++

#include<iostream>
#include<algorithm>
#include<cmath>
using namespace std;
int main() {
  int n,m,dp[100001],a[100001]={0},b;
  cin >> n >> m;
  for(int i=0; i<m; i++) {
    cin >> b;
    a[b]=1;
  }
  dp[0]=1;
  for(int i=1; i<=n; i++) {
    if(a[i-1]==0) {
      dp[i]+=dp[i-1];
    }
    if(a[i-2]==0) {
      dp[i]+=dp[i-2];
    }
    dp[i]%=1000000007
  }
  cout << dp << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:22: error: expected ';' before '}' token
   20 |     dp[i]%=1000000007
      |                      ^
      |                      ;
   21 |   }
      |   ~
Language: C++

#include<iostream>
#include<algorithm>
#include<cmath>
using namespace std;
int main() {
  int n,m,dp[100001],a;
  cin >> n >> m;
  for(int i=0; i<n; i++) {
    dp[i]=1;
  }
  for(int i=0; i<m; i++) {
    cin >> a
    dp[a]=0;
  }
  for(int i=2; i<=n; i++) {
    if(dp[i]==0) {
      continue;
    }
    else {
      dp[i]=(dp[i-1]+dp[i-2])%1000000007;
    }
  }
  cout << dp[n] << endl
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:13: error: expected ';' before 'dp'
   12 |     cin >> a
      |             ^
      |             ;
   13 |     dp[a]=0;
      |     ~~       
a.cc:23:24: error: expected ';' before '}' token
   23 |   cout << dp[n] << endl
      |                        ^
      |                        ;
   24 | }
      | ~
Language: C++

#include<iostream>
#include<algorithm>
#include<cmath>
using namespace std;
int main() {
  int n,m,dp[100001],a;
  cin >> n >> m;
  for(int i=0; i<n; i++) {
    dp[i]=1;
  }
  for(int i=0; i<m; i++) {
    cin >> a
    cin >> dp[a]=0;
  }
  for(int i=2; i<=n; i++) {
    if(dp[i]==0) {
      continue;
    }
    else {
      dp[i]=(dp[i-1]+dp[i-2])%1000000007;
    }
  }
  cout << dp[n] << endl
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:13: error: expected ';' before 'cin'
   12 |     cin >> a
      |             ^
      |             ;
   13 |     cin >> dp[a]=0;
      |     ~~~      
a.cc:23:24: error: expected ';' before '}' token
   23 |   cout << dp[n] << endl
      |                        ^
      |                        ;
   24 | }
      | ~
Language: C++

#include<iostream>
#include<algorithm>
#include<cmath>
using namespace std;
int main() {
  int n,m,dp[100001],a;
  cin >> n >> m;
  for(int i=0; i<n; i++) {
    cin >> dp[i]=1;
  }
  for(int i=0; i<m; i++) {
    cin >> a
    cin >> dp[a]=0;
  }
  for(int i=2; i<=n; i++) {
    if(dp[i]==0) {
      continue;
    }
    else {
      dp[i]=(dp[i-1]+dp[i-2])%1000000007;
    }
  }
  cout << dp[n] << endl
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:18: error: no match for 'operator=' (operand types are 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} and 'int')
    9 |     cin >> dp[i]=1;
      |                  ^
In file included from /usr/include/c++/14/iostream:42,
                 from a.cc:1:
/usr/include/c++/14/istream:718:7: note: candidate: 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator=(std::basic_istream<_CharT, _Traits>&&) [with _CharT = char; _Traits = std::char_traits<char>]'
  718 |       operator=(basic_istream&& __rhs)
      |       ^~~~~~~~
/usr/include/c++/14/istream:718:33: note:   no known conversion for argument 1 from 'int' to 'std::basic_istream<char>&&'
  718 |       operator=(basic_istream&& __rhs)
      |                 ~~~~~~~~~~~~~~~~^~~~~
a.cc:12:13: error: expected ';' before 'cin'
   12 |     cin >> a
      |             ^
      |             ;
   13 |     cin >> dp[a]=0;
      |     ~~~      
a.cc:23:24: error: expected ';' before '}' token
   23 |   cout << dp[n] << endl
      |                        ^
      |                        ;
   24 | }
      | ~
Language: C++

#include<iostream>
#include<algorithm>
#include<cmath>
using namespace std;
int main() {
  int n,m,dp[100001],a;
  cin >> n >> m;
  for(int i=0; i<n; i++) {
    cin >> dp[i]=1;
  for(int i=0; i<m; i++) {
    cin >> a
    cin >> dp[a]=0;
  }
  for(int i=2; i<=n; i++) {
    if(dp[i]==0) {
      continue;
    }
    else {
      dp[i]=(dp[i-1]+dp[i-2])%1000000007;
    }
  }
  cout << dp[n] << endl
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:18: error: no match for 'operator=' (operand types are 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} and 'int')
    9 |     cin >> dp[i]=1;
      |                  ^
In file included from /usr/include/c++/14/iostream:42,
                 from a.cc:1:
/usr/include/c++/14/istream:718:7: note: candidate: 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator=(std::basic_istream<_CharT, _Traits>&&) [with _CharT = char; _Traits = std::char_traits<char>]'
  718 |       operator=(basic_istream&& __rhs)
      |       ^~~~~~~~
/usr/include/c++/14/istream:718:33: note:   no known conversion for argument 1 from 'int' to 'std::basic_istream<char>&&'
  718 |       operator=(basic_istream&& __rhs)
      |                 ~~~~~~~~~~~~~~~~^~~~~
a.cc:11:13: error: expected ';' before 'cin'
   11 |     cin >> a
      |             ^
      |             ;
   12 |     cin >> dp[a]=0;
      |     ~~~      
a.cc:22:24: error: expected ';' before '}' token
   22 |   cout << dp[n] << endl
      |                        ^
      |                        ;
   23 | }
      | ~                       
a.cc:23:2: error: expected '}' at end of input
   23 | }
      |  ^
a.cc:5:12: note: to match this '{'
    5 | int main() {
      |            ^
Language: C++

#include<iostream>
#include<algorithm>
#include<cmath>
using namespace std;
int main() {
  int n,m,dp[100001];
  cin >> n >> m;
  for(int i=0; i<n; i++) {
    cin >> dp[i]=1;
  for(int i=0; i<m; i++) {
    cin >> dp[i]=0;
  }
  for(int i=2; i<=n; i++) {
    if(dp[i]==0) {
      continue;
    }
    else {
      dp[i]=(dp[i-1]+dp[i-2])%1000000007;
    }
  }
  cout << dp[n] << endl
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:18: error: no match for 'operator=' (operand types are 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} and 'int')
    9 |     cin >> dp[i]=1;
      |                  ^
In file included from /usr/include/c++/14/iostream:42,
                 from a.cc:1:
/usr/include/c++/14/istream:718:7: note: candidate: 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator=(std::basic_istream<_CharT, _Traits>&&) [with _CharT = char; _Traits = std::char_traits<char>]'
  718 |       operator=(basic_istream&& __rhs)
      |       ^~~~~~~~
/usr/include/c++/14/istream:718:33: note:   no known conversion for argument 1 from 'int' to 'std::basic_istream<char>&&'
  718 |       operator=(basic_istream&& __rhs)
      |                 ~~~~~~~~~~~~~~~~^~~~~
a.cc:11:18: error: no match for 'operator=' (operand types are 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} and 'int')
   11 |     cin >> dp[i]=0;
      |                  ^
/usr/include/c++/14/istream:718:7: note: candidate: 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator=(std::basic_istream<_CharT, _Traits>&&) [with _CharT = char; _Traits = std::char_traits<char>]'
  718 |       operator=(basic_istream&& __rhs)
      |       ^~~~~~~~
/usr/include/c++/14/istream:718:33: note:   no known conversion for argument 1 from 'int' to 'std::basic_istream<char>&&'
  718 |       operator=(basic_istream&& __rhs)
      |                 ~~~~~~~~~~~~~~~~^~~~~
a.cc:21:24: error: expected ';' before '}' token
   21 |   cout << dp[n] << endl
      |                        ^
      |                        ;
   22 | }
      | ~                       
a.cc:22:2: error: expected '}' at end of input
   22 | }
      |  ^
a.cc:5:12: note: to match this '{'
    5 | int main() {
      |            ^
Language: Java

import java.util.*;

public class C {
	public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        
        int n = sc.nextInt();
        int m = sc.nextInt();
        int a[] = new int[m+1];

        long mod = (long)1E9+7;

        for (int i = 0; i < m; i++) {
            a[i] = sc.nextInt();
        }

        long result[] = new long[n + 10];
        result[0] = 1;
        result[1] = 1;
        int index = 0;

        for (int  i = 2; i <= n; i++) {
            if (i == a[index]) {
                result[i] = 0;
            } else if (i == a[index]+1) {
                result[i] = result[i - 2];
                index++;
            } else {
                result[i] = (result[i -1] + result[i - 2]) % mod;
            }
        }

        System.out.println(result[n]);
	}
}

Compiler output:
Main.java:3: error: class C is public, should be declared in a file named C.java
public class C {
       ^
1 error
Language: C++

#include <iostream>
#include <string>
#include <algorithm>
#include <cmath>
using namespace std;
#define LL long long;

int n, m;
LL int f[100001], ans = 1;
int a[100001];

int fib(int x){
	if (x == 0) return 0;
	if (x == 1)return 1;
	if (f[x] != 0)return f[x];
	
	return f[x] = fib(x - 1) + fib(x - 2);
}

int main(){

	cin >> n >> m;
	for (int i = 0; i < m; i++)cin >> a[i];

	for (int i = 0; i <= m; i++){
		if (i == 0) ans *= fib(a[i]);
		else if(i == m){
			ans *= fib(n - a[i - 1]);
		}
		else{
			ans *= fib(a[i] - a[i - 1]);
		}
	}

	cout << ans << endl;

	return 0;
}

Compiler output:
a.cc:6:17: error: declaration does not declare anything [-fpermissive]
    6 | #define LL long long;
      |                 ^~~~
a.cc:9:1: note: in expansion of macro 'LL'
    9 | LL int f[100001], ans = 1;
      | ^~
Language: C++

#include <iostream>
#include <string>
#include <algorithm>
using namespace std;

int main() {
    int N;              //段数
    int M;              //壊れた床の個数
    cin >> N >> M;
    int a[M];           //何段目の床が壊れているか
    for(int i = 0; i < M; i++) {
        cin >> a[i];
    }
    int f[N+2];         //i段目からスタートしたときの組み合わせの数
    const int mod = 1000000007;

    for(int i = 0; i < M; i++) {
        f(a[i]) = 0;
    }

    for(int i = N-1; 0 <= i; i--) {
        f[N+1] = 0;
        f[N] = 1;
        f[i] = f[i+1] + f[i+2];
    }

    cout << f[0] % mod;
    
    cout << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:10: error: 'f' cannot be used as a function
   18 |         f(a[i]) = 0;
      |         ~^~~~~~
Language: C++

#include "bits/stdc++.h"
using namespace std;
#define REP(i, n) for(int i = 0; i < n; i++)
#define REPR(i, n) for(int i = n; i >= 0; i--)
#define FOR(i, m, n) for(int i = m; i < n; i++)
#define MOD 1000000007
const long long mod=1e9+7;

int main(){
int N,M;
cin >> N >> M;

vector<int>oks(N+1,true);

for(int i=0;i<M;++i){
   int a;
   cin>>a;
   oks[a]=false;
}
// 渡ることができるのはtrue , 渡れないのはfalse 

 vector<long long int>dp(N+1);
 dp[0]=1;

for(int now　= 0; now　< N; now++){  //nowは今の時点
    for(int next = now+1; next <= min(N,now+2); next++){ // min() ２つのうちの最小値
        if(oks[next]){
            dp[next] += dp[now];
            dp[next] %= mod;
        }
    }    
}
cout<<dp[N]<<endl;
return 0;
}
   


Compiler output:
a.cc:25:9: error: extended character 　 is not valid in an identifier
   25 | for(int now　= 0; now　< N; now++){  //nowは今の時点
      |         ^
a.cc:25:19: error: extended character 　 is not valid in an identifier
   25 | for(int now　= 0; now　< N; now++){  //nowは今の時点
      |                   ^
a.cc: In function 'int main()':
a.cc:25:29: error: 'now' was not declared in this scope; did you mean 'pow'?
   25 | for(int now　= 0; now　< N; now++){  //nowは今の時点
      |                             ^~~
      |                             pow
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
  
  int n, m;
  cin >> n >> m;
  vector<int> a(m);
  vector<int> dp(n + 2);
  for (auto idx(0); idx < m; ++idx) {
    int tmp;
    cin >> tmp;
    a.push(tmp);
  }
  dp[n] = 1;
  for (auto idx(n - 1); idx >= 0; --idx) {
    dp[idx] = (dp[idx + 2] + dp[idx + 1]) % 1000000007;
    if (a.back() == idx) {
      dp[idx] = 0;
      a.pop_back();
    }
  }
  cout << dp[0] % 1000000007 << endl;
  
  
return 0;}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:7: error: 'class std::vector<int>' has no member named 'push'
   12 |     a.push(tmp);
      |       ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
    int N, M;
    cin >> N >> M;
    vector<bool> broken(N + 1);
 
    for (int i = 0; i < M; i++) {
        int a; cin >> a;
        broken[a] = true;
    }
 
    vector<int> dp(N + 2);
    const long long mod = 1e9 + 7;
    dp[0] = 1;
    for (int j = n - 1; j >= 0; j--) {
        if (broken[j]) dp[j] = 0;
        else dp[j] = dp[j + 1] + dp[j + 2] % mod;
    }
    cout << dp[0] << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:18: error: 'n' was not declared in this scope
   17 |     for (int j = n - 1; j >= 0; j--) {
      |                  ^
Language: C

#include <stdio.h>
int main() {
	int n,m,i,j,t=0,a[100000];
	long long int ans[2] = { 0, 1 };
	scanf_s("%d", &n);
	scanf_s("%d", &m);
	for (i = 0; i < m; i++) scanf_s("%d", &a[i]);
	for (i = 0; i < n; i++) {
		ans[i % 2] = (ans[0] + ans[1]) % 1000000007;
		for (j = t; j < m; j++) if (i == a[j] - 1) {
			ans[i % 2] = 0;
			t = j;
			break;
		}
	}
	printf("%lld", ans[(n+1)%2]);
}

Compiler output:
main.c: In function 'main':
main.c:5:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    5 |         scanf_s("%d", &n);
      |         ^~~~~~~
      |         scanf