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_15401976_25753.cpp: In function 'int cmp1(node*, node*)':
0_0_15401976_25753.cpp:17:34: error: 'strcmp' was not declared in this scope
     return strcmp(ta->num,tb->num);
                                  ^
0_0_15401976_25753.cpp: In function 'int cmp2(node*, node*)':
0_0_15401976_25753.cpp:24:32: error: 'strcmp' was not declared in this scope
     if(strcmp(ta->name,tb->name)==0)
                                ^
0_0_15401976_25753.cpp:26:36: error: 'strcmp' was not declared in this scope
     return strcmp(ta->name,tb->name);
                                    ^
0_0_15401976_25753.cpp: In function 'int cmp3(node*, node*)':
0_0_15401976_25753.cpp:34:33: error: 'strcmp' was not declared in this scope
  return strcmp(ta->name,tb->name);
                                 ^
0_0_15401976_25753.cpp: In function 'int main()':
0_0_15401976_25753.cpp:42:11: error: 'cin' was not declared in this scope
     while(cin>>n>>c && n)
           ^
0_0_15401976_25753.cpp:46:5: error: 'cout' was not declared in this scope
     cout<<"Case "<<cases<<":"<<endl;
     ^
0_0_15401976_25753.cpp:46:32: error: 'endl' was not declared in this scope
     cout<<"Case "<<cases<<":"<<endl;
                                ^
0_0_15401976_25753.cpp:49:26: error: no matching function for call to 'sort(node [100002], int&, int (&)(node*, node*))'
             sort(q,n,cmp1);
                          ^
0_0_15401976_25753.cpp:49:26: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
                 from 0_0_15401976_25753.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:4676:5: note: template<class _RAIter> void std::sort(_RAIter, _RAIter)
     sort(_RandomAccessIterator __first, _RandomAccessIterator __last)
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:4676:5: note:   template argument deduction/substitution failed:
0_0_15401976_25753.cpp:49:26: note:   deduced conflicting types for parameter '_RAIter' ('node*' and 'int')
             sort(q,n,cmp1);
                          ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
                 from 0_0_15401976_25753.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:4705:5: note: template<class _RAIter, class _Compare> void std::sort(_RAIter, _RAIter, _Compare)
     sort(_RandomAccessIterator __first, _RandomAccessIterator __last,
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:4705:5: note:   template argument deduction/substitution failed:
0_0_15401976_25753.cpp:49:26: note:   deduced conflicting types for parameter '_RAIter' ('node*' and 'int')
             sort(q,n,cmp1);
                          ^
0_0_15401976_25753.cpp:55:26: error: no matching function for call to 'sort(node [100002], int&, int (&)(node*, node*))'
             sort(q,n,cmp2);
                          ^
0_0_15401976_25753.cpp:55:26: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
                 from 0_0_15401976_25753.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:4676:5: note: template<class _RAIter> void std::sort(_RAIter, _RAIter)
     sort(_RandomAccessIterator __first, _RandomAccessIterator __last)
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:4676:5: note:   template argument deduction/substitution failed:
0_0_15401976_25753.cpp:55:26: note:   deduced conflicting types for parameter '_RAIter' ('node*' and 'int')
             sort(q,n,cmp2);
                          ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
                 from 0_0_15401976_25753.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:4705:5: note: template<class _RAIter, class _Compare> void std::sort(_RAIter, _RAIter, _Compare)
     sort(_RandomAccessIterator __first, _RandomAccessIterator __last,
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:4705:5: note:   template argument deduction/substitution failed:
0_0_15401976_25753.cpp:55:26: note:   deduced conflicting types for parameter '_RAIter' ('node*' and 'int')
             sort(q,n,cmp2);
                          ^
0_0_15401976_25753.cpp:61:26: error: no matching function for call to 'sort(node [100002], int&, int (&)(node*, node*))'
             sort(q,n,cmp3);
                          ^
0_0_15401976_25753.cpp:61:26: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
                 from 0_0_15401976_25753.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:4676:5: note: template<class _RAIter> void std::sort(_RAIter, _RAIter)
     sort(_RandomAccessIterator __first, _RandomAccessIterator __last)
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:4676:5: note:   template argument deduction/substitution failed:
0_0_15401976_25753.cpp:61:26: note:   deduced conflicting types for parameter '_RAIter' ('node*' and 'int')
             sort(q,n,cmp3);
                          ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
                 from 0_0_15401976_25753.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:4705:5: note: template<class _RAIter, class _Compare> void std::sort(_RAIter, _RAIter, _Compare)
     sort(_RandomAccessIterator __first, _RandomAccessIterator __last,
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:4705:5: note:   template argument deduction/substitution failed:
0_0_15401976_25753.cpp:61:26: note:   deduced conflicting types for parameter '_RAIter' ('node*' and 'int')
             sort(q,n,cmp3);
                          ^


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-10-06 01:45:07, Gzip enabled