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_38337815_28532.cpp:1:1: error: 'include' does not name a type
 include <bits/stdc++.h>
 ^
0_0_38337815_28532.cpp:4:1: error: 'vector' does not name a type
 vector<int>G[maxn];
 ^
0_0_38337815_28532.cpp: In function 'void init(int)':
0_0_38337815_28532.cpp:11:27: error: 'memset' was not declared in this scope
  memset(mch,-1,sizeof(mch));
                           ^
0_0_38337815_28532.cpp:13:2: error: 'G' was not declared in this scope
  G[i].clear();
  ^
0_0_38337815_28532.cpp:16:20: error: 'G' was not declared in this scope
  if(grid[i][j]==c) G[i].push_back(j);
                    ^
0_0_38337815_28532.cpp: In function 'bool find(int)':
0_0_38337815_28532.cpp:20:12: error: 'G' was not declared in this scope
  for(int i=G[x].size()-1;i>=0;i--)
            ^
0_0_38337815_28532.cpp: In function 'int Augment()':
0_0_38337815_28532.cpp:38:27: error: 'memset' was not declared in this scope
   memset(vis,0,sizeof(vis));
                           ^
0_0_38337815_28532.cpp: In function 'int main()':
0_0_38337815_28532.cpp:44:26: error: 'scanf' was not declared in this scope
  while(scanf("%d%d",&n,&k)==2,n||k)
                          ^
0_0_38337815_28532.cpp:46:31: error: 'memset' was not declared in this scope
   memset(color,0,sizeof(color));
                               ^
0_0_38337815_28532.cpp:54:3: error: 'vector' was not declared in this scope
   vector<int>ans;
   ^
0_0_38337815_28532.cpp:54:10: error: expected primary-expression before 'int'
   vector<int>ans;
          ^
0_0_38337815_28532.cpp:60:16: error: 'ans' was not declared in this scope
    if(times>k) ans.push_back(c);
                ^
0_0_38337815_28532.cpp:63:6: error: 'ans' was not declared in this scope
   if(ans.size()==0)
      ^
0_0_38337815_28532.cpp:64:13: error: 'puts' was not declared in this scope
   {puts("-1");continue;}
             ^
0_0_38337815_28532.cpp:65:8: error: 'ans' was not declared in this scope
   sort(ans.begin(),ans.end());
        ^
0_0_38337815_28532.cpp:65:29: error: 'sort' was not declared in this scope
   sort(ans.begin(),ans.end());
                             ^
0_0_38337815_28532.cpp:67:22: error: 'printf' was not declared in this scope
   printf("%d ",ans[i]);
                      ^
0_0_38337815_28532.cpp:68:27: error: 'printf' was not declared in this scope
   printf("%d\n",ans.back());
                           ^


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-29 21:55:30, Gzip enabled