F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

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);
                       ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-09-21 12:37:54, Gzip enabled