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_36604667_30953.cpp: In function 'int main()':
0_0_36604667_30953.cpp:46:4: error: reference to 'tm' is ambiguous
    tm[i].id = i, tm[i].sc = a[i];
    ^
0_0_36604667_30953.cpp:38:3: note: candidates are: team tm [50005]
 } tm[50005];
   ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/cwchar:44:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/postypes.h:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iosfwd:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_36604667_30953.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/wchar.h:895:10: note:                 struct tm
   struct tm {
          ^
0_0_36604667_30953.cpp:46:18: error: reference to 'tm' is ambiguous
    tm[i].id = i, tm[i].sc = a[i];
                  ^
0_0_36604667_30953.cpp:38:3: note: candidates are: team tm [50005]
 } tm[50005];
   ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/cwchar:44:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/postypes.h:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iosfwd:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_36604667_30953.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/wchar.h:895:10: note:                 struct tm
   struct tm {
          ^
0_0_36604667_30953.cpp:48:8: error: reference to 'tm' is ambiguous
   sort(tm + 1, tm + n + 1);
        ^
0_0_36604667_30953.cpp:38:3: note: candidates are: team tm [50005]
 } tm[50005];
   ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/cwchar:44:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/postypes.h:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iosfwd:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_36604667_30953.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/wchar.h:895:10: note:                 struct tm
   struct tm {
          ^
0_0_36604667_30953.cpp:48:16: error: reference to 'tm' is ambiguous
   sort(tm + 1, tm + n + 1);
                ^
0_0_36604667_30953.cpp:38:3: note: candidates are: team tm [50005]
 } tm[50005];
   ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/cwchar:44:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/postypes.h:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iosfwd:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_36604667_30953.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/wchar.h:895:10: note:                 struct tm
   struct tm {
          ^
0_0_36604667_30953.cpp:53:15: error: reference to 'tm' is ambiguous
    int high = tm[i].sc + b[1];
               ^
0_0_36604667_30953.cpp:38:3: note: candidates are: team tm [50005]
 } tm[50005];
   ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/cwchar:44:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/postypes.h:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iosfwd:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_36604667_30953.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/wchar.h:895:10: note:                 struct tm
   struct tm {
          ^
0_0_36604667_30953.cpp:57:8: error: reference to 'tm' is ambiguous
     if(tm[j].sc + b[n] > high) pos++, cnt1++;
        ^
0_0_36604667_30953.cpp:38:3: note: candidates are: team tm [50005]
 } tm[50005];
   ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/cwchar:44:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/postypes.h:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iosfwd:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_36604667_30953.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/wchar.h:895:10: note:                 struct tm
   struct tm {
          ^
0_0_36604667_30953.cpp:64:20: error: reference to 'tm' is ambiguous
       while(b[p] + tm[k].sc > high) p++;
                    ^
0_0_36604667_30953.cpp:38:3: note: candidates are: team tm [50005]
 } tm[50005];
   ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/cwchar:44:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/postypes.h:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iosfwd:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_36604667_30953.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/wchar.h:895:10: note:                 struct tm
   struct tm {
          ^
0_0_36604667_30953.cpp:73:4: error: 'ans1' was not declared in this scope
    ans1[tm[i].id] = cnt1 + 1;
    ^
0_0_36604667_30953.cpp:73:9: error: reference to 'tm' is ambiguous
    ans1[tm[i].id] = cnt1 + 1;
         ^
0_0_36604667_30953.cpp:38:3: note: candidates are: team tm [50005]
 } tm[50005];
   ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/cwchar:44:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/postypes.h:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iosfwd:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_36604667_30953.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/wchar.h:895:10: note:                 struct tm
   struct tm {
          ^
0_0_36604667_30953.cpp:75:14: error: reference to 'tm' is ambiguous
    int low = tm[i].sc + b[n];
              ^
0_0_36604667_30953.cpp:38:3: note: candidates are: team tm [50005]
 } tm[50005];
   ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/cwchar:44:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/postypes.h:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iosfwd:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_36604667_30953.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/wchar.h:895:10: note:                 struct tm
   struct tm {
          ^
0_0_36604667_30953.cpp:80:8: error: reference to 'tm' is ambiguous
     if(tm[j].sc > low) pos--, cnt2++;
        ^
0_0_36604667_30953.cpp:38:3: note: candidates are: team tm [50005]
 } tm[50005];
   ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/cwchar:44:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/postypes.h:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iosfwd:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_36604667_30953.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/wchar.h:895:10: note:                 struct tm
   struct tm {
          ^
0_0_36604667_30953.cpp:87:21: error: reference to 'tm' is ambiguous
       while(b[up] + tm[k].sc <= low) up--;
                     ^
0_0_36604667_30953.cpp:38:3: note: candidates are: team tm [50005]
 } tm[50005];
   ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/cwchar:44:0,
                 from D:/HDO


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-17 03:01:20, Gzip enabled