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_27961162_530.cpp: In function 'void dfs(int, int&, int)':
0_0_27961162_530.cpp:31:5: error: reference to 'cin' is ambiguous
     cin[x]=cou++;
     ^
0_0_27961162_530.cpp:12:28: note: candidates are: int cin [80008]
 int sta[80008],ssta[80008],cin[80008];
                            ^
In file included from 0_0_27961162_530.cpp:2:0:
GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:60:18: note:                 std::istream std::cin
   extern istream cin;  /// Linked to standard input
                  ^
0_0_27961162_530.cpp: In function 'int main()':
0_0_27961162_530.cpp:104:43: error: reference to 'cin' is ambiguous
                 else if(sta[x]<sta[root]&&cin[root]<cin[x])
                                           ^
0_0_27961162_530.cpp:12:28: note: candidates are: int cin [80008]
 int sta[80008],ssta[80008],cin[80008];
                            ^
In file included from 0_0_27961162_530.cpp:2:0:
GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:60:18: note:                 std::istream std::cin
   extern istream cin;  /// Linked to standard input
                  ^
0_0_27961162_530.cpp:104:53: error: reference to 'cin' is ambiguous
                 else if(sta[x]<sta[root]&&cin[root]<cin[x])
                                                     ^
0_0_27961162_530.cpp:12:28: note: candidates are: int cin [80008]
 int sta[80008],ssta[80008],cin[80008];
                            ^
In file included from 0_0_27961162_530.cpp:2:0:
GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:60:18: note:                 std::istream std::cin
   extern istream cin;  /// Linked to standard input
                  ^
0_0_27961162_530.cpp:108:69: error: reference to 'cin' is ambiguous
                     printf("%d\n",tree[1]-query(1,cou-1,1,sta[temp],cin[temp]));
                                                                     ^
0_0_27961162_530.cpp:12:28: note: candidates are: int cin [80008]
 int sta[80008],ssta[80008],cin[80008];
                            ^
In file included from 0_0_27961162_530.cpp:2:0:
GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:60:18: note:                 std::istream std::cin
   extern istream cin;  /// Linked to standard input
                  ^
0_0_27961162_530.cpp:110:59: error: reference to 'cin' is ambiguous
                 else printf("%d\n",query(1,cou-1,1,sta[x],cin[x]));
                                                           ^
0_0_27961162_530.cpp:12:28: note: candidates are: int cin [80008]
 int sta[80008],ssta[80008],cin[80008];
                            ^
In file included from 0_0_27961162_530.cpp:2:0:
GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:60:18: note:                 std::istream std::cin
   extern istream cin;  /// Linked to standard input
                  ^


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-02 03:28:37, Gzip enabled