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_30769863_17614.cpp: In function 'bool find(int, int)':
0_0_30769863_17614.cpp:15:16: error: 'n' was not declared in this scope
  for(int j=0;j<n;j++){
                ^
0_0_30769863_17614.cpp:16:6: error: 'map' was not declared in this scope
   if(map[x][j]==obj&&used[j]==false){
      ^
0_0_30769863_17614.cpp:18:7: error: 'link' was not declared in this scope
    if(link[j]==-1||find(link[j],obj)){
       ^
0_0_30769863_17614.cpp: In function 'int main()':
0_0_30769863_17614.cpp:29:19: error: 'n' was not declared in this scope
      while(cin >> n >> k && (n || k)){
                   ^
0_0_30769863_17614.cpp:29:24: error: 'k' was not declared in this scope
      while(cin >> n >> k && (n || k)){
                        ^
0_0_30769863_17614.cpp:31:8: error: 'len' was not declared in this scope
        len=0,end=0;
        ^
0_0_30769863_17614.cpp:31:17: error: overloaded function with no contextual type information
        len=0,end=0;
                 ^
0_0_30769863_17614.cpp:34:14: error: 'map' was not declared in this scope
         cin>>map[i][j];
              ^
0_0_30769863_17614.cpp:37:13: error: 'kind' was not declared in this scope
          if(kind[k]==map[i][j]){
             ^
0_0_30769863_17614.cpp:43:6: error: 'kind' was not declared in this scope
      kind[len++]=map[i][j]; 
      ^
0_0_30769863_17614.cpp:47:11: error: 'link' was not declared in this scope
    memset(link,-1,sizeof link);
           ^
0_0_30769863_17614.cpp:51:18: error: 'kind' was not declared in this scope
       if(find(ii,kind[i]))  sum++; 
                  ^
0_0_30769863_17614.cpp:53:15: error: 'ans' was not declared in this scope
    if(sum>k)  ans[end++]=kind[i];
               ^
0_0_30769863_17614.cpp:53:22: error: no post-increment operator for type
    if(sum>k)  ans[end++]=kind[i];
                      ^
0_0_30769863_17614.cpp:53:26: error: 'kind' was not declared in this scope
    if(sum>k)  ans[end++]=kind[i];
                          ^
0_0_30769863_17614.cpp:56:8: error: 'ans' was not declared in this scope
   sort(ans,ans+end);
        ^
0_0_30769863_17614.cpp:57:11: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator=='
   if(end==0){
           ^
0_0_30769863_17614.cpp:61:18: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<'
    for(int i=1;i<end;i++)
                  ^


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-12-05 00:26:16, Gzip enabled