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_16776216_9789.cpp: In function 'bool Find(int)':
0_0_16776216_9789.cpp:38:13: error: reference to 'stol' is ambiguous
         v = stol[x][i].v;
             ^
0_0_16776216_9789.cpp:28:2: note: candidates are: STOL stol [505][2]
 }stol[505][2];
  ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52:0,
                 from 0_0_16776216_9789.cpp:5:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:2966:3: note:                 long int std::stol(const wstring&, std::size_t*, int)
   stol(const wstring& __str, size_t* __idx = 0, int __base = 10)
   ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:2863:3: note:                 long int std::stol(const string&, std::size_t*, int)
   stol(const string& __str, size_t* __idx = 0, int __base = 10)
   ^
0_0_16776216_9789.cpp:44:22: error: reference to 'stol' is ambiguous
             ans[x] = stol[x][i].sta;
                      ^
0_0_16776216_9789.cpp:28:2: note: candidates are: STOL stol [505][2]
 }stol[505][2];
  ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52:0,
                 from 0_0_16776216_9789.cpp:5:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:2966:3: note:                 long int std::stol(const wstring&, std::size_t*, int)
   stol(const wstring& __str, size_t* __idx = 0, int __base = 10)
   ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:2863:3: note:                 long int std::stol(const string&, std::size_t*, int)
   stol(const string& __str, size_t* __idx = 0, int __base = 10)
   ^
0_0_16776216_9789.cpp: In function 'int main()':
0_0_16776216_9789.cpp:65:17: error: reference to 'stol' is ambiguous
                 stol[swch][num[swch]].v = i;
                 ^
0_0_16776216_9789.cpp:28:2: note: candidates are: STOL stol [505][2]
 }stol[505][2];
  ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52:0,
                 from 0_0_16776216_9789.cpp:5:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:2966:3: note:                 long int std::stol(const wstring&, std::size_t*, int)
   stol(const wstring& __str, size_t* __idx = 0, int __base = 10)
   ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:2863:3: note:                 long int std::stol(const string&, std::size_t*, int)
   stol(const string& __str, size_t* __idx = 0, int __base = 10)
   ^
0_0_16776216_9789.cpp:66:35: error: reference to 'stol' is ambiguous
                 if(ope[1] == 'N') stol[swch][num[swch]++].sta = 1;
                                   ^
0_0_16776216_9789.cpp:28:2: note: candidates are: STOL stol [505][2]
 }stol[505][2];
  ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52:0,
                 from 0_0_16776216_9789.cpp:5:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:2966:3: note:                 long int std::stol(const wstring&, std::size_t*, int)
   stol(const wstring& __str, size_t* __idx = 0, int __base = 10)
   ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:2863:3: note:                 long int std::stol(const string&, std::size_t*, int)
   stol(const string& __str, size_t* __idx = 0, int __base = 10)
   ^
0_0_16776216_9789.cpp:67:22: error: reference to 'stol' is ambiguous
                 else stol[swch][num[swch]++].sta = 0;
                      ^
0_0_16776216_9789.cpp:28:2: note: candidates are: STOL stol [505][2]
 }stol[505][2];
  ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52:0,
                 from 0_0_16776216_9789.cpp:5:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:2966:3: note:                 long int std::stol(const wstring&, std::size_t*, int)
   stol(const wstring& __str, size_t* __idx = 0, int __base = 10)
   ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:2863:3: note:                 long int std::stol(const string&, std::size_t*, int)
   stol(const string& __str, size_t* __idx = 0, int __base = 10)
   ^
0_0_16776216_9789.cpp:75:39: error: reference to 'stol' is ambiguous
                 viss[i] = 1; ans[i] = stol[i][0].sta;
                                       ^
0_0_16776216_9789.cpp:28:2: note: candidates are: STOL stol [505][2]
 }stol[505][2];
  ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52:0,
                 from 0_0_16776216_9789.cpp:5:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:2966:3: note:                 long int std::stol(const wstring&, std::size_t*, int)
   stol(const wstring& __str, size_t* __idx = 0, int __base = 10)
   ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:2863:3: note:                 long int std::stol(const string&, std::size_t*, int)
   stol(const string& __str, size_t* __idx = 0, int __base = 10)
   ^
0_0_16776216_9789.cpp:76:25: error: reference to 'stol' is ambiguous
                 if(visl[stol[i][0].v]) continue;
                         ^
0_0_16776216_9789.cpp:28:2: note: candidates are: STOL stol [505][2]
 }stol[505][2];
  ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52:0,
                 from 0_0_16776216_9789.cpp:5:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:2966:3: note:                 long int std::stol(const wstring&, std::size_t*, int)
   stol(const wstring& __str, size_t* __idx = 0, int __base = 10)
   ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:2863:3: note:                 long int std::stol(const string&, std::size_t*, int)
   stol(const string& __str, size_t* __idx = 0, int __base = 10)
   ^
0_0_16776216_9789.cpp:77:30: error: reference to 'stol' is ambiguous
                 flag++; visl[stol[i][0].v] = 1;
                              ^
0_0_16776216_9789.cpp:28:2: note: candidates are: STOL stol [505][2]
 }stol[505][2];
  ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52:0,
                 from 0_0_16776216_9789.cpp:5:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:2966:3: note:                 long int std::stol(const wstring&, std::size_t*, int)
   stol(const wstring& __str, size_t* __idx = 0, int __base = 10)
   ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:2863:3: note:                 long int std::stol(const string&, std::size_t*, int)
   stol(const string& __str, size_t* __idx = 0, int __base = 10)
   ^
0_0_16776216_9789.cpp:81:20: error: reference to 'stol' is ambiguous
                 if(stol[i][0].sta == stol[i][1].sta)
                    ^
0_0_16776216_9789.cpp:28:2: note: candidates are: STOL stol [505][2]
 }stol[505][2];
  ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52:0,
                 from 0_0_16776216_9789.cpp:5:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:2966:3: note:                 long int std::stol(const wstring&, std::size_t*, int)
   stol(const wstring& __str, size_t* __idx = 0, int __base = 10)
   ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:2863:3: note:                 long int std::stol(const string&, std::size_t*, int)
   stol(const string& __str, size_t* __idx = 0, int __base = 10)
   ^
0_0_16776216_9789.cpp:81:38: error: reference to 'stol' is ambiguous
                 if(stol[i][0].sta == stol[i][1].sta)
                                      ^
0_0_16776216_9789.cpp:28:2: note: candidates are: STOL stol [505][2]
 }stol[505][2];
  ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52:0,
                 from 0_0_16776216_9789.cpp:5:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:2966:3: note:                 long int std::stol(const wstring&, std::size_t*, int)
   stol(const wstring& __str, size_t* __idx = 0, int __base = 10)
   ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:2863:3: note:                 long int std::stol(const string&, std::size_t*, int)
   stol(const string& __str, size_t* __idx = 0, int __base = 10)
   ^
0_0_16776216_9789.cpp:83:43: error: reference to 'stol' is ambiguous
                     viss[i] = 1; ans[i] = stol[i][0].sta;
                                           ^
0_0_16776216_9789.cpp:28:2: note: candidates are: STOL stol [505][2]
 }stol[505][2];
  ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52:0,
                 from 0_0_16776216_9789.cpp:5:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:2966:3: note:                 long int std::stol(const wstring&, std::size_t*, int)
   stol(const wstring& __str, size_t* __idx = 0, int __base = 10)
   ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:2863:3: note:                 long int std::stol(const string&, std::size_t*, int)
   stol(const string& __str, size_t* __idx = 0, int __base = 10)
   ^
0_0_16776216_9789.cpp:84:30: error: reference to 'stol' is ambiguous
                     if(!visl[stol[i][0].v])
                              ^
0_0_16776216_9789.cpp:28:2: note: candidates are: STOL stol [505][2]
 }stol[505][2];
  ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52:0,
                 from 0_0_16776216_9789.cpp:5:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basi


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-26 07:00:05, Gzip enabled