115062024-10-14 11:21:12fazekas2028cToronyépítés (1,1,3,3)cpp17Forditási hiba
#include <bits/stdc++.h>
using namespace std;

#define int long long
const int MOD = 20210108

signed main() {
	int n; 
	cin >> n;
	vector<int> dp(n+1, 0);
	dp[0] = 1;
	dp[1] = 2;
	dp[2] = 4;
	for (int i = 3; i <= n; i++) {
		dp[i] = ((2 * dp[i-1]) % MOD + (2 * dp[i-3]) % MOD) % MOD;
	}
	cout << dp[n];
	return 0;
}
Forditási hiba
open /var/local/lib/isolate/413/box/a.out: no such file or directory
main.cpp:7:1: error: expected ',' or ';' before 'signed'
    7 | signed main() {
      | ^~~~~~