0_0_16644357_16556.cpp:10:50: error: conflicting declaration 'int s [10]'
int cs, n, k, m, P, Q, s, t, sum, p[maxn], s[maxm], t[maxm];
^
0_0_16644357_16556.cpp:10:24: note: previous declaration as 'int s'
int cs, n, k, m, P, Q, s, t, sum, p[maxn], s[maxm], t[maxm];
^
0_0_16644357_16556.cpp:10:59: error: conflicting declaration 'int t [10]'
int cs, n, k, m, P, Q, s, t, sum, p[maxn], s[maxm], t[maxm];
^
0_0_16644357_16556.cpp:10:27: note: previous declaration as 'int t'
int cs, n, k, m, P, Q, s, t, sum, p[maxn], s[maxm], t[maxm];
^
0_0_16644357_16556.cpp: In function 'int main()':
0_0_16644357_16556.cpp:95:22: error: invalid types 'int[int]' for array subscript
scanf("%d%d", &s[i], &t[i]);
^
0_0_16644357_16556.cpp:95:29: error: invalid types 'int[int]' for array subscript
scanf("%d%d", &s[i], &t[i]);
^
0_0_16644357_16556.cpp:107:26: error: invalid types 'int[int]' for array subscript
for(int j = 1; j + t[i] <= n; j++) {
^
0_0_16644357_16556.cpp:108:29: error: invalid types 'int[int]' for array subscript
o.addEdge(j, n + j + t[i], INF, s[i]);
^
0_0_16644357_16556.cpp:108:40: error: invalid types 'int[int]' for array subscript
o.addEdge(j, n + j + t[i], INF, s[i]);
^
0_0_16644357_16556.cpp:120:23: error: 'ans' was not declared in this scope
else printf("%d\n", ans);
^
|