Language: C++

#include <iostream>
#include <cstdio>
#include <algorithm>
#include <functional>
#include <vector>
#include <string>
#include <cstring>

#define rep(i,n) for(int i=0;i<n;i++)
#define rep1(i,n) for(int i=1;i<=n;i++)
#define repn(i,n,m) for(int i=n;i<m;i++)
#define repn1(i,n,m) for(int i=n;i<=m;i++)
using namespace std;

int main(){

	
	int n;

	while(cin >> n, n){
????????????int dp[100] = {0};
	dp[1] = 1;
	dp[2] = 2;
	dp[3] = 4;

	repn(i, 4, 30) dp[i] = dp[i-1] + dp[i-2] + dp[i-3];

	

		cout << (dp[n] / 10 / 365) + (dp[n]%3650==0 ? 0 : 1) << endl;
	}

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:1: error: expected primary-expression before '?' token
   21 | ????????????int dp[100] = {0};
      | ^
a.cc:21:2: error: expected primary-expression before '?' token
   21 | ????????????int dp[100] = {0};
      |  ^
a.cc:21:3: error: expected primary-expression before '?' token
   21 | ????????????int dp[100] = {0};
      |   ^
a.cc:21:4: error: expected primary-expression before '?' token
   21 | ????????????int dp[100] = {0};
      |    ^
a.cc:21:5: error: expected primary-expression before '?' token
   21 | ????????????int dp[100] = {0};
      |     ^
a.cc:21:6: error: expected primary-expression before '?' token
   21 | ????????????int dp[100] = {0};
      |      ^
a.cc:21:7: error: expected primary-expression before '?' token
   21 | ????????????int dp[100] = {0};
      |       ^
a.cc:21:8: error: expected primary-expression before '?' token
   21 | ????????????int dp[100] = {0};
      |        ^
a.cc:21:9: error: expected primary-expression before '?' token
   21 | ????????????int dp[100] = {0};
      |         ^
a.cc:21:10: error: expected primary-expression before '?' token
   21 | ????????????int dp[100] = {0};
      |          ^
a.cc:21:11: error: expected primary-expression before '?' token
   21 | ????????????int dp[100] = {0};
      |           ^
a.cc:21:12: error: expected primary-expression before '?' token
   21 | ????????????int dp[100] = {0};
      |            ^
a.cc:21:13: error: expected primary-expression before 'int'
   21 | ????????????int dp[100] = {0};
      |             ^~~
a.cc:21:13: error: expected ':' before 'int'
   21 | ????????????int dp[100] = {0};
      |             ^~~
      |             :
a.cc:21:13: error: expected primary-expression before 'int'
   21 | ????????????int dp[100] = {0};
      |             ^~~
a.cc:21:13: error: expected ':' before 'int'
   21 | ????????????int dp[100] = {0};
      |             ^~~
      |             :
a.cc:21:13: error: expected primary-expression before 'int'
   21 | ????????????int dp[100] = {0};
      |             ^~~
a.cc:21:13: error: expected ':' before 'int'
   21 | ????????????int dp[100] = {0};
      |             ^~~
      |             :
a.cc:21:13: error: expected primary-expression before 'int'
   21 | ????????????int dp[100] = {0};
      |             ^~~
a.cc:21:13: error: expected ':' before 'int'
   21 | ????????????int dp[100] = {0};
      |             ^~~
      |             :
a.cc:21:13: error: expected primary-expression before 'int'
   21 | ????????????int dp[100] = {0};
      |             ^~~
a.cc:21:13: error: expected ':' before 'int'
   21 | ????????????int dp[100] = {0};
      |             ^~~
      |             :
a.cc:21:13: error: expected primary-expression before 'int'
   21 | ????????????int dp[100] = {0};
      |             ^~~
a.cc:21:13: error: expected ':' before 'int'
   21 | ????????????int dp[100] = {0};
      |             ^~~
      |             :
a.cc:21:13: error: expected primary-expression before 'int'
   21 | ????????????int dp[100] = {0};
      |             ^~~
a.cc:21:13: error: expected ':' before 'int'
   21 | ????????????int dp[100] = {0};
      |             ^~~
      |             :
a.cc:21:13: error: expected primary-expression before 'int'
   21 | ????????????int dp[100] = {0};
      |             ^~~
a.cc:21:13: error: expected ':' before 'int'
   21 | ????????????int dp[100] = {0};
      |             ^~~
      |             :
a.cc:21:13: error: expected primary-expression before 'int'
   21 | ????????????int dp[100] = {0};
      |             ^~~
a.cc:21:13: error: expected ':' before 'int'
   21 | ????????????int dp[100] = {0};
      |             ^~~
      |             :
a.cc:21:13: error: expected primary-expression before 'int'
   21 | ????????????int dp[100] = {0};
      |             ^~~
a.cc:21:13: error: expected ':' before 'int'
   21 | ????????????int dp[100] = {0};
      |             ^~~
      |             :
a.cc:21:13: error: expected primary-expression before 'int'
   21 | ????????????int dp[100] = {0};
      |             ^~~
a.cc:21:13: error: expected ':' before 'int'
   21 | ????????????int dp[100] = {0};
      |             ^~~
      |             :
a.cc:21:13: error: expected primary-expression before 'int'
   21 | ????????????int dp[100] = {0};
      |             ^~~
a.cc:21:13: error: expected ':' before 'int'
   21 | ????????????int dp[100] = {0};
      |             ^~~
      |             :
a.cc:21:13: error: expected primary-expression before 'int'
   21 | ????????????int dp[100] = {0};
      |             ^~~
a.cc:22:9: error: 'dp' was not declared in this scope
   22 |         dp[1] = 1;
      |         ^~