0_0_33618859_19131.cpp:1:1: error: stray '\' in program
\#include<bits/stdc++.h>
^
0_0_33618859_19131.cpp:1:2: error: stray '#' in program
\#include<bits/stdc++.h>
^
0_0_33618859_19131.cpp:1:3: error: 'include' does not name a type
\#include<bits/stdc++.h>
^
0_0_33618859_19131.cpp:14:1: error: 'map' does not name a type
map<vector<int>, ll> dp[20][2];
^
0_0_33618859_19131.cpp:15:1: error: 'vector' does not name a type
vector<int> v;
^
0_0_33618859_19131.cpp: In function 'long long int dfs(int, int, int)':
0_0_33618859_19131.cpp:30:15: error: 'dp' was not declared in this scope
if(!limit && dp[pos][lead].find(v) != dp[pos][lead].end()) return dp[pos][lead][v];
^
0_0_33618859_19131.cpp:30:34: error: 'v' was not declared in this scope
if(!limit && dp[pos][lead].find(v) != dp[pos][lead].end()) return dp[pos][lead][v];
^
0_0_33618859_19131.cpp:34:13: error: 'v' was not declared in this scope
if(v[i] >= v[d]) return dp[pos][lead][v] = 0;
^
0_0_33618859_19131.cpp:34:34: error: 'dp' was not declared in this scope
if(v[i] >= v[d]) return dp[pos][lead][v] = 0;
^
0_0_33618859_19131.cpp:36:13: error: 'dp' was not declared in this scope
return dp[pos][lead][v] = 1;
^
0_0_33618859_19131.cpp:36:27: error: 'v' was not declared in this scope
return dp[pos][lead][v] = 1;
^
0_0_33618859_19131.cpp:48:11: error: 'v' was not declared in this scope
if(v[d] + i <= v[j]) {
^
0_0_33618859_19131.cpp:53:33: error: 'v' was not declared in this scope
for(int l = 1; l <= min(k, v[d] + i - v[j] - 1); l++) {
^
0_0_33618859_19131.cpp:53:52: error: 'min' was not declared in this scope
for(int l = 1; l <= min(k, v[d] + i - v[j] - 1); l++) {
^
0_0_33618859_19131.cpp:60:10: error: 'dp' was not declared in this scope
return dp[pos][lead][v] = res;
^
0_0_33618859_19131.cpp:60:24: error: 'v' was not declared in this scope
return dp[pos][lead][v] = res;
^
0_0_33618859_19131.cpp:64:17: error: 'v' was not declared in this scope
if(i == d || v[i] + 2 < v[d] + pos) {
^
0_0_33618859_19131.cpp:75:3: error: 'dp' was not declared in this scope
dp[pos][lead][v] = res;
^
0_0_33618859_19131.cpp:75:17: error: 'v' was not declared in this scope
dp[pos][lead][v] = res;
^
0_0_33618859_19131.cpp: In function 'void init()':
0_0_33618859_19131.cpp:90:30: error: 'dp' was not declared in this scope
for(int j = 0; j < 2; j++) dp[i][j].clear();
^
0_0_33618859_19131.cpp: In function 'int main()':
0_0_33618859_19131.cpp:96:33: error: 'v' was not declared in this scope
for(int i = 0; i < 10; i++) v.push_back(0);
^
0_0_33618859_19131.cpp:97:19: error: 'scanf' was not declared in this scope
scanf("%d", &t);
^
0_0_33618859_19131.cpp:102:49: error: 'printf' was not declared in this scope
printf("%lld\n", solve(r) - solve(l - 1));
^
|