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:16:1: error: expected primary-expression before '?' token
   16 | ????????????int n;
      | ^
a.cc:16:2: error: expected primary-expression before '?' token
   16 | ????????????int n;
      |  ^
a.cc:16:3: error: expected primary-expression before '?' token
   16 | ????????????int n;
      |   ^
a.cc:16:4: error: expected primary-expression before '?' token
   16 | ????????????int n;
      |    ^
a.cc:16:5: error: expected primary-expression before '?' token
   16 | ????????????int n;
      |     ^
a.cc:16:6: error: expected primary-expression before '?' token
   16 | ????????????int n;
      |      ^
a.cc:16:7: error: expected primary-expression before '?' token
   16 | ????????????int n;
      |       ^
a.cc:16:8: error: expected primary-expression before '?' token
   16 | ????????????int n;
      |        ^
a.cc:16:9: error: expected primary-expression before '?' token
   16 | ????????????int n;
      |         ^
a.cc:16:10: error: expected primary-expression before '?' token
   16 | ????????????int n;
      |          ^
a.cc:16:11: error: expected primary-expression before '?' token
   16 | ????????????int n;
      |           ^
a.cc:16:12: error: expected primary-expression before '?' token
   16 | ????????????int n;
      |            ^
a.cc:16:13: error: expected primary-expression before 'int'
   16 | ????????????int n;
      |             ^~~
a.cc:16:13: error: expected ':' before 'int'
   16 | ????????????int n;
      |             ^~~
      |             :
a.cc:16:13: error: expected primary-expression before 'int'
   16 | ????????????int n;
      |             ^~~
a.cc:16:13: error: expected ':' before 'int'
   16 | ????????????int n;
      |             ^~~
      |             :
a.cc:16:13: error: expected primary-expression before 'int'
   16 | ????????????int n;
      |             ^~~
a.cc:16:13: error: expected ':' before 'int'
   16 | ????????????int n;
      |             ^~~
      |             :
a.cc:16:13: error: expected primary-expression before 'int'
   16 | ????????????int n;
      |             ^~~
a.cc:16:13: error: expected ':' before 'int'
   16 | ????????????int n;
      |             ^~~
      |             :
a.cc:16:13: error: expected primary-expression before 'int'
   16 | ????????????int n;
      |             ^~~
a.cc:16:13: error: expected ':' before 'int'
   16 | ????????????int n;
      |             ^~~
      |             :
a.cc:16:13: error: expected primary-expression before 'int'
   16 | ????????????int n;
      |             ^~~
a.cc:16:13: error: expected ':' before 'int'
   16 | ????????????int n;
      |             ^~~
      |             :
a.cc:16:13: error: expected primary-expression before 'int'
   16 | ????????????int n;
      |             ^~~
a.cc:16:13: error: expected ':' before 'int'
   16 | ????????????int n;
      |             ^~~
      |             :
a.cc:16:13: error: expected primary-expression before 'int'
   16 | ????????????int n;
      |             ^~~
a.cc:16:13: error: expected ':' before 'int'
   16 | ????????????int n;
      |             ^~~
      |             :
a.cc:16:13: error: expected primary-expression before 'int'
   16 | ????????????int n;
      |             ^~~
a.cc:16:13: error: expected ':' before 'int'
   16 | ????????????int n;
      |             ^~~
      |             :
a.cc:16:13: error: expected primary-expression before 'int'
   16 | ????????????int n;
      |             ^~~
a.cc:16:13: error: expected ':' before 'int'
   16 | ????????????int n;
      |             ^~~
      |             :
a.cc:16:13: error: expected primary-expression before 'int'
   16 | ????????????int n;
      |             ^~~
a.cc:16:13: error: expected ':' before 'int'
   16 | ????????????int n;
      |             ^~~
      |             :
a.cc:16:13: error: expected primary-expression before 'int'
   16 | ????????????int n;
      |             ^~~
a.cc:16:13: error: expected ':' before 'int'
   16 | ????????????int n;
      |             ^~~
      |             :
a.cc:16:13: error: expected primary-expression before 'int'
   16 | ????????????int n;
      |             ^~~
a.cc:17:1: error: expected primary-expression before '?' token
   17 | ????????????while(cin >> n, n){
      | ^
a.cc:17:2: error: expected primary-expression before '?' token
   17 | ????????????while(cin >> n, n){
      |  ^
a.cc:17:3: error: expected primary-expression before '?' token
   17 | ????????????while(cin >> n, n){
      |   ^
a.cc:17:4: error: expected primary-expression before '?' token
   17 | ????????????while(cin >> n, n){
      |    ^
a.cc:17:5: error: expected primary-expression before '?' token
   17 | ????????????while(cin >> n, n){
      |     ^
a.cc:17:6: error: expected primary-expression before '?' token
   17 | ????????????while(cin >> n, n){
      |      ^
a.cc:17:7: error: expected primary-expression before '?' token
   17 | ????????????while(cin >> n, n){
      |       ^
a.cc:17:8: error: expected primary-expression before '?' token
   17 | ????????????while(cin >> n, n){
      |        ^
a.cc:17:9: error: expected primary-expression before '?' token
   17 | ????????????while(cin >> n, n){
      |         ^
a.cc:17:10: error: expected primary-expression before '?' token
   17 | ????????????while(cin >> n, n){
      |          ^
a.cc:17:11: error: expected primary-expression before '?' token
   17 | ????????????while(cin >> n, n){
      |           ^
a.cc:17:12: error: expected primary-expression before '?' token
   17 | ????????????while(cin >> n, n){
      |            ^
a.cc:17:13: error: expected primary-expression before 'while'
   17 | ????????????while(cin >> n, n){
      |             ^~~~~
a.cc:17:13: error: expected ':' before 'while'
   17 | ????????????while(cin >> n, n){
      |             ^~~~~
      |             :
a.cc:17:13: error: expected primary-expression before 'while'
   17 | ????????????while(cin >> n, n){
      |             ^~~~~
a.cc:17:13: error: expected ':' before 'while'
   17 | ????????????while(cin >> n, n){
      |             ^~~~~
      |             :
a.cc:17:13: error: expected primary-expression before 'while'
   17 | ????????????while(cin >> n, n){
      |             ^~~~~
a.cc:17:13: error: expected ':' before 'while'
   17 | ????????????while(cin >> n, n){
      |             ^~~~~
      |             :
a.cc:17:13: error: expected primary-expression before 'while'
   17 | ????????????while(cin >> n, n){
      |             ^~~~~
a.cc:17:13: error: expected ':' before 'while'
   17 | ????????????while(cin >> n, n){
      |             ^~~~~
      |             :
a.cc:17:13: error: expected primary-expression before 'while'
   17 | ????????????while(cin >> n, n){
      |             ^~~~~
a.cc:17:13: error: expected ':' before 'while'
   17 | ????????????while(cin >> n, n){
      |             ^~~~~
      |             :
a.cc:17:13: error: expected primary-expression before 'while'
   17 | ????????????while(cin >> n, n){
      |             ^~~~~
a.cc:17:13: error: expected ':' before 'while'
   17 | ????????????while(cin >> n, n){
      |             ^~~~~
      |             :
a.cc:17:13: error: expected primary-expression before 'while'
   17 | ????????????while(cin >> n, n){
      |             ^~~~~
a.cc:17:13: error: expected ':' before 'while'
   17 | ????????????while(cin >> n, n){
      |             ^~~~~
      |             :
a.cc:17:13: error: expected primary-expression before 'while'
   17 | ????????????while(cin >> n, n){
      |             ^~~~~
a.cc:17:13: error: expected ':' before 'while'
   17 | ????????????while(cin >> n, n){
      |             ^~~~~
      |             :
a.cc:17:13: error: expected primary-expression before 'while'
   17 | ????????????while(cin >> n, n){
      |             ^~~~~
a.cc:17:13: error: expected ':' before 'while'
   17 | ????????????while(cin >> n, n){
      |             ^~~~~
      |             :
a.cc:17:13: error: expected primary-expression before 'while'
   17 | ????????????while(cin >> n, n){
      |             ^~~~~
a.cc:17:13: error: expected ':' before 'while'
   17 | ????????????while(cin >> n, n){
      |             ^~~~~
      |             :
a.cc:17:13: error: expected primary-expression before 'while'
   17 | ????????????while(cin >> n, n){
      |             ^~~~~
a.cc:17:13: error: expected ':' before 'while'
   17 | ????????????while(cin >> n, n){
      |             ^~~~~
      |             :
a.cc:17:13: error: expected primary-expression before 'while'
   17 | ????????????while(cin >> n, n){
      |             ^~~~~
a.cc:17:13: error: expected ':' before 'while'
   17 | ????????????while(cin >> n, n){
      |             ^~~~~
      |             :
a.cc:17:13: error: expected primary-expression before 'while'
   17 | ????????????while(cin >> n, n){
      |             ^~~~~