0_0_36315610_7470.cpp:1:2: error: stray '#' in program
2#include <bits/stdc++.h>
^
0_0_36315610_7470.cpp:1:1: error: expected unqualified-id before numeric constant
2#include <bits/stdc++.h>
^
0_0_36315610_7470.cpp:12:9: error: 'tuple' does not name a type
typedef tuple<int, int, int> tpi;
^
0_0_36315610_7470.cpp:16:1: error: 'map' does not name a type
map<string, int> id;
^
0_0_36315610_7470.cpp:17:1: error: 'vector' does not name a type
vector<tpi> tp;
^
0_0_36315610_7470.cpp: In function 'void dp1()':
0_0_36315610_7470.cpp:25:20: error: 'tp' was not declared in this scope
for (auto it : tp) {
^
0_0_36315610_7470.cpp:26:18: error: 'get' was not declared in this scope
int id = get<0>(it), x = get<1>(it), y = get<2>(it);
^
0_0_36315610_7470.cpp:27:30: error: 'y' was not declared in this scope
for (int i = t; i >= y; --i)
^
0_0_36315610_7470.cpp:28:65: error: 'x' was not declared in this scope
dp[id][i] = max(dp[id][i], min(100, dp[id][i - y] + x));
^
0_0_36315610_7470.cpp:28:66: error: 'min' was not declared in this scope
dp[id][i] = max(dp[id][i], min(100, dp[id][i - y] + x));
^
0_0_36315610_7470.cpp:28:67: error: 'max' was not declared in this scope
dp[id][i] = max(dp[id][i], min(100, dp[id][i - y] + x));
^
0_0_36315610_7470.cpp: In function 'void dp2()':
0_0_36315610_7470.cpp:32:5: error: 'vector' was not declared in this scope
vector<int> ve[n + 5];
^
0_0_36315610_7470.cpp:32:12: error: expected primary-expression before 'int'
vector<int> ve[n + 5];
^
0_0_36315610_7470.cpp:33:12: error: expected primary-expression before 'int'
vector<int> we(n * t), c(n * t);
^
0_0_36315610_7470.cpp:38:13: error: 'we' was not declared in this scope
we[now] = j, c[now] = dp[i][j];
^
0_0_36315610_7470.cpp:38:26: error: 'c' was not declared in this scope
we[now] = j, c[now] = dp[i][j];
^
0_0_36315610_7470.cpp:39:13: error: 've' was not declared in this scope
ve[i].push_back(now);
^
0_0_36315610_7470.cpp:42:33: error: 've' was not declared in this scope
rep(i, 1, n) for (auto it : ve[i]) de(i, we[it], c[it]);
^
0_0_36315610_7470.cpp:45:23: error: expected primary-expression before 'int'
vector<vector<int>> tmp(6, vector<int>(t + 5, -inf));
^
0_0_36315610_7470.cpp:47:27: error: 've' was not declared in this scope
for (auto x : ve[i]) if (j >= we[x]) {
^
0_0_36315610_7470.cpp:47:43: error: 'we' was not declared in this scope
for (auto x : ve[i]) if (j >= we[x]) {
^
0_0_36315610_7470.cpp:48:28: error: 'c' was not declared in this scope
int add = (c[x] < 60);
^
0_0_36315610_7470.cpp:51:21: error: 'tmp' was not declared in this scope
tmp[0 + add][j] = max(tmp[0 + add][j], _dp[0][j - we[x]] + c[x]);
^
0_0_36315610_7470.cpp:51:84: error: 'max' was not declared in this scope
tmp[0 + add][j] = max(tmp[0 + add][j], _dp[0][j - we[x]] + c[x]);
^
0_0_36315610_7470.cpp:53:21: error: 'tmp' was not declared in this scope
tmp[1 + add][j] = max(tmp[1 + add][j], _dp[1][j - we[x]] + c[x]);
^
0_0_36315610_7470.cpp:53:84: error: 'max' was not declared in this scope
tmp[1 + add][j] = max(tmp[1 + add][j], _dp[1][j - we[x]] + c[x]);
^
0_0_36315610_7470.cpp:55:21: error: 'tmp' was not declared in this scope
tmp[2 + add][j] = max(tmp[2 + add][j], _dp[2][j - we[x]] + c[x]);
^
0_0_36315610_7470.cpp:55:84: error: 'max' was not declared in this scope
tmp[2 + add][j] = max(tmp[2 + add][j], _dp[2][j - we[x]] + c[x]);
^
0_0_36315610_7470.cpp:57:21: error: 'tmp' was not declared in this scope
tmp[3 + add][j] = max(tmp[3 + add][j], _dp[3][j - we[x]] + c[x]);
^
0_0_36315610_7470.cpp:57:84: error: 'max' was not declared in this scope
tmp[3 + add][j] = max(tmp[3 + add][j], _dp[3][j - we[x]] + c[x]);
^
0_0_36315610_7470.cpp:60:47: error: 'tmp' was not declared in this scope
rep(j, 0, 4) rep(k, 0, t) _dp[j][k] = tmp[j][k];
^
0_0_36315610_7470.cpp:64:42: error: 'max' was not declared in this scope
rep(i, 0, f) ans = max(ans, _dp[i][t]);
^
0_0_36315610_7470.cpp:66:23: error: 'printf' was not declared in this scope
printf("%d\n", ans);
^
0_0_36315610_7470.cpp: In function 'int case_Test()':
0_0_36315610_7470.cpp:69:19: error: 'scanf' was not declared in this scope
scanf("%d", &n);
^
0_0_36315610_7470.cpp:70:5: error: 'id' was not declared in this scope
id.clear();
^
0_0_36315610_7470.cpp:72:9: error: 'string' was not declared in this scope
string s; cin >> s;
^
0_0_36315610_7470.cpp:72:19: error: 'cin' was not declared in this scope
string s; cin >> s;
^
0_0_36315610_7470.cpp:72:26: error: 's' was not declared in this scope
string s; cin >> s;
^
0_0_36315610_7470.cpp:76:5: error: 'tp' was not declared in this scope
tp.clear();
^
0_0_36315610_7470.cpp:78:9: error: 'string' was not declared in this scope
string s; cin >> s;
^
0_0_36315610_7470.cpp:78:19: error: 'cin' was not declared in this scope
string s; cin >> s;
^
0_0_36315610_7470.cpp:78:26: error: 's' was not declared in this scope
string s; cin >> s;
^
0_0_36315610_7470.cpp: In function 'int main()':
0_0_36315610_7470.cpp:95:19: error: 'scanf' was not declared in this scope
scanf("%d", &T);
^
|