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_33547186_6085.cpp:264:8: error: 'item' was not declared in this scope
 vector<item> x[60];
        ^
0_0_33547186_6085.cpp:264:12: error: template argument 1 is invalid
 vector<item> x[60];
            ^
0_0_33547186_6085.cpp:264:12: error: template argument 2 is invalid
0_0_33547186_6085.cpp:264:19: error: invalid type in declaration before ';' token
 vector<item> x[60];
                   ^
0_0_33547186_6085.cpp: In function 'void init()':
0_0_33547186_6085.cpp:271:14: error: request for member 'clear' in 'x[i]', which is of non-class type 'int'
         x[i].clear();
              ^
0_0_33547186_6085.cpp: In function 'll dfs(int, ll, ll, ll, ll)':
0_0_33547186_6085.cpp:284:30: error: request for member 'size' in 'x[id.std::vector<_Tp, _Alloc>::operator[]<int, std::allocator<int> >(((std::vector<int>::size_type)con))]', which is of non-class type 'int'
     for(int i=0;i<x[id[con]].size();i++)
                              ^
0_0_33547186_6085.cpp:286:45: error: invalid types 'int[int]' for array subscript
         ans=max(ans,dfs(con+1,a+x[id[con]][i].a,b+x[id[con]][i].b,c+x[id[con]][i].c,d+x[id[con]][i].d));
                                             ^
0_0_33547186_6085.cpp:286:63: error: invalid types 'int[int]' for array subscript
         ans=max(ans,dfs(con+1,a+x[id[con]][i].a,b+x[id[con]][i].b,c+x[id[con]][i].c,d+x[id[con]][i].d));
                                                               ^
0_0_33547186_6085.cpp:286:81: error: invalid types 'int[int]' for array subscript
         ans=max(ans,dfs(con+1,a+x[id[con]][i].a,b+x[id[con]][i].b,c+x[id[con]][i].c,d+x[id[con]][i].d));
                                                                                 ^
0_0_33547186_6085.cpp:286:99: error: invalid types 'int[int]' for array subscript
         ans=max(ans,dfs(con+1,a+x[id[con]][i].a,b+x[id[con]][i].b,c+x[id[con]][i].c,d+x[id[con]][i].d));
                                                                                                   ^
0_0_33547186_6085.cpp: In function 'void solve()':
0_0_33547186_6085.cpp:302:16: error: request for member 'push_back' in 'x[con]', which is of non-class type 'int'
         x[con].push_back({read(),read(),read(),read()});
                ^
0_0_33547186_6085.cpp:306:18: error: request for member 'empty' in 'x[i]', which is of non-class type 'int'
         if(!x[i].empty())
                  ^


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-11-17 01:22:19, Gzip enabled