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_39528030_10872.cpp: In function 'int main()':
0_0_39528030_10872.cpp:246:30: error: reference to 'cin' is ambiguous
  246 |     ios::sync_with_stdio(0), cin.tie(0), outfile.tie(0);
      |                              ^~~
In file included from 0_0_39528030_10872.cpp:1:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/iostream:62:18: note: candidates are: 'std::istream std::cin'
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
0_0_39528030_10872.cpp:12:10: note:                 'std::ifstream cin'
   12 | ifstream cin("1004.in");
      |          ^~~
0_0_39528030_10872.cpp:248:5: error: reference to 'cin' is ambiguous
  248 |     cin >> tt;
      |     ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/iostream:62:18: note: candidates are: 'std::istream std::cin'
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
0_0_39528030_10872.cpp:12:10: note:                 'std::ifstream cin'
   12 | ifstream cin("1004.in");
      |          ^~~
0_0_39528030_10872.cpp:251:9: error: reference to 'cin' is ambiguous
  251 |         cin >> n;
      |         ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/iostream:62:18: note: candidates are: 'std::istream std::cin'
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
0_0_39528030_10872.cpp:12:10: note:                 'std::ifstream cin'
   12 | ifstream cin("1004.in");
      |          ^~~
0_0_39528030_10872.cpp:254:13: error: reference to 'cin' is ambiguous
  254 |             cin >> u >> v;
      |             ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/iostream:62:18: note: candidates are: 'std::istream std::cin'
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
0_0_39528030_10872.cpp:12:10: note:                 'std::ifstream cin'
   12 | ifstream cin("1004.in");
      |          ^~~
0_0_39528030_10872.cpp:260:9: error: reference to 'cin' is ambiguous
  260 |         cin >> qq;
      |         ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/iostream:62:18: note: candidates are: 'std::istream std::cin'
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
0_0_39528030_10872.cpp:12:10: note:                 'std::ifstream cin'
   12 | ifstream cin("1004.in");
      |          ^~~
0_0_39528030_10872.cpp:263:13: error: reference to 'cin' is ambiguous
  263 |             cin >> r >> x;
      |             ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/iostream:62:18: note: candidates are: 'std::istream std::cin'
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
0_0_39528030_10872.cpp:12:10: note:                 'std::ifstream cin'
   12 | ifstream cin("1004.in");
      |          ^~~


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-09-20 11:33:57, Gzip enabled