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_36240388_1311.cpp: In function 'int main()':
0_0_36240388_1311.cpp:33:2: error: reference to 'rank' is ambiguous
  rank p[100],s;
  ^
0_0_36240388_1311.cpp:25:8: note: candidates are: struct rank
 struct rank
        ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/move.h:57:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:59,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:64,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_36240388_1311.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note:                 template<class> struct std::rank
     struct rank
            ^
0_0_36240388_1311.cpp:36:13: error: 'p' was not declared in this scope
  while(cin>>p[i].name)
             ^
0_0_36240388_1311.cpp:56:6: error: 'p' was not declared in this scope
   if(p[j].num<p[k].num)
      ^
0_0_36240388_1311.cpp:57:3: error: 's' was not declared in this scope
   s=p[j];
   ^
0_0_36240388_1311.cpp:58:3: error: 'p' was not declared in this scope
   p[j]=p[k];
   ^
0_0_36240388_1311.cpp:59:8: error: 's' was not declared in this scope
   p[k]=s;
        ^
0_0_36240388_1311.cpp:64:6: error: 'p' was not declared in this scope
   if(p[j].gra>p[k].gra&&p[j].num==p[k].num)
      ^
0_0_36240388_1311.cpp:65:3: error: 's' was not declared in this scope
   s=p[j];
   ^
0_0_36240388_1311.cpp:66:3: error: 'p' was not declared in this scope
   p[j]=p[k];
   ^
0_0_36240388_1311.cpp:67:8: error: 's' was not declared in this scope
   p[k]=s;
        ^
0_0_36240388_1311.cpp:72:6: error: 'p' was not declared in this scope
   if(p[j].name>p[k].name&&p[j].num==p[k].num&&p[j].gra==p[k].gra)
      ^
0_0_36240388_1311.cpp:73:3: error: 's' was not declared in this scope
   s=p[j];
   ^
0_0_36240388_1311.cpp:74:3: error: 'p' was not declared in this scope
   p[j]=p[k];
   ^
0_0_36240388_1311.cpp:75:8: error: 's' was not declared in this scope
   p[k]=s;
        ^
0_0_36240388_1311.cpp:78:24: error: 'p' was not declared in this scope
  cout<<left<<setw(10)<<p[j].name<<right<<setw(2)<<p[j].num<<setw(4)<<p[j].gra<<endl;
                        ^


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-16 15:50:09, Gzip enabled