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_15162512_21661.cpp:10:1: error: 'vector' does not name a type
 vector<vector<int> > ss;
 ^
0_0_15162512_21661.cpp:11:1: error: 'vector' does not name a type
 vector<int> mask;
 ^
0_0_15162512_21661.cpp:12:1: error: 'vector' does not name a type
 vector<vector<int> > ns(301,vector<int>());
 ^
0_0_15162512_21661.cpp: In function 'int dfs(int)':
0_0_15162512_21661.cpp:17:11: error: 'ss' was not declared in this scope
     rep(i,ss.size()) if(mask[i]) {
           ^
0_0_15162512_21661.cpp:8:38: note: in definition of macro 'rep'
 #define rep(i,n) for(int i = 0; i < (n); i++)
                                      ^
0_0_15162512_21661.cpp:17:25: error: 'mask' was not declared in this scope
     rep(i,ss.size()) if(mask[i]) {
                         ^
0_0_15162512_21661.cpp:21:13: error: 'vector' was not declared in this scope
             vector<int> mk = mask;
             ^
0_0_15162512_21661.cpp:21:20: error: expected primary-expression before 'int'
             vector<int> mk = mask;
                    ^
0_0_15162512_21661.cpp:22:19: error: 'ns' was not declared in this scope
             rep(k,ns[ss[i][j]].size()) mask[ns[ss[i][j]][k]] = 0;
                   ^
0_0_15162512_21661.cpp:8:38: note: in definition of macro 'rep'
 #define rep(i,n) for(int i = 0; i < (n); i++)
                                      ^
0_0_15162512_21661.cpp:27:19: error: 'ns' was not declared in this scope
             rep(k,ns[ss[i][j]].size()) 
                   ^
0_0_15162512_21661.cpp:8:38: note: in definition of macro 'rep'
 #define rep(i,n) for(int i = 0; i < (n); i++)
                                      ^
0_0_15162512_21661.cpp:28:20: error: 'mk' was not declared in this scope
                 if(mk[ns[ss[i][j]][k]]) mask[ns[ss[i][j]][k]] = 1;
                    ^
0_0_15162512_21661.cpp: In function 'void go()':
0_0_15162512_21661.cpp:40:5: error: 'ss' was not declared in this scope
     ss.clear(); ns.clear();
     ^
0_0_15162512_21661.cpp:40:17: error: 'ns' was not declared in this scope
     ss.clear(); ns.clear();
                 ^
0_0_15162512_21661.cpp:41:19: error: 'vector' was not declared in this scope
     ns.assign(301,vector<int>());
                   ^
0_0_15162512_21661.cpp:41:26: error: expected primary-expression before 'int'
     ns.assign(301,vector<int>());
                          ^
0_0_15162512_21661.cpp:42:5: error: 'mask' was not declared in this scope
     mask.assign(n,1);
     ^
0_0_15162512_21661.cpp:47:29: error: expected primary-expression before 'int'
         ss.push_back(vector<int> (A));
                             ^
0_0_15162512_21661.cpp:55:16: error: 'cout' was not declared in this scope
     if(dfs(l)) cout << "YES" << endl;
                ^
0_0_15162512_21661.cpp:55:33: error: 'endl' was not declared in this scope
     if(dfs(l)) cout << "YES" << endl;
                                 ^
0_0_15162512_21661.cpp:56:10: error: 'cout' was not declared in this scope
     else cout << "NO" << endl;
          ^
0_0_15162512_21661.cpp:56:26: error: 'endl' was not declared in this scope
     else cout << "NO" << endl;
                          ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2025-02-17 12:33:52, Gzip enabled