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
^
|