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_36690935_15477.cpp: In function 'int main()':
0_0_36690935_15477.cpp:17:10: error: reference to 'tm' is ambiguous
   memset(tm, -1, sizeof(tm));
          ^
0_0_36690935_15477.cpp:4:5: note: candidates are: int tm [60][110]
 int tm[60][110];
     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/ctime:42:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:49,
                 from 0_0_36690935_15477.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/time.h:88:10: note:                 struct tm
   struct tm {
          ^
0_0_36690935_15477.cpp:17:25: error: reference to 'tm' is ambiguous
   memset(tm, -1, sizeof(tm));
                         ^
0_0_36690935_15477.cpp:4:5: note: candidates are: int tm [60][110]
 int tm[60][110];
     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/ctime:42:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:49,
                 from 0_0_36690935_15477.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/time.h:88:10: note:                 struct tm
   struct tm {
          ^
0_0_36690935_15477.cpp:37:4: error: reference to 'tm' is ambiguous
    tm[i][0] = 0;
    ^
0_0_36690935_15477.cpp:4:5: note: candidates are: int tm [60][110]
 int tm[60][110];
     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/ctime:42:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:49,
                 from 0_0_36690935_15477.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/time.h:88:10: note:                 struct tm
   struct tm {
          ^
0_0_36690935_15477.cpp:41:9: error: reference to 'tm' is ambiguous
      if(tm[i][w] == -1)continue;
         ^
0_0_36690935_15477.cpp:4:5: note: candidates are: int tm [60][110]
 int tm[60][110];
     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/ctime:42:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:49,
                 from 0_0_36690935_15477.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/time.h:88:10: note:                 struct tm
   struct tm {
          ^
0_0_36690935_15477.cpp:42:9: error: reference to 'tm' is ambiguous
      if(tm[i][min(100, w + k.first)] == -1)tm[i][min(100, w + k.first)] = k.second + tm[i][w];
         ^
0_0_36690935_15477.cpp:4:5: note: candidates are: int tm [60][110]
 int tm[60][110];
     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/ctime:42:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:49,
                 from 0_0_36690935_15477.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/time.h:88:10: note:                 struct tm
   struct tm {
          ^
0_0_36690935_15477.cpp:42:44: error: reference to 'tm' is ambiguous
      if(tm[i][min(100, w + k.first)] == -1)tm[i][min(100, w + k.first)] = k.second + tm[i][w];
                                            ^
0_0_36690935_15477.cpp:4:5: note: candidates are: int tm [60][110]
 int tm[60][110];
     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/ctime:42:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:49,
                 from 0_0_36690935_15477.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/time.h:88:10: note:                 struct tm
   struct tm {
          ^
0_0_36690935_15477.cpp:42:86: error: reference to 'tm' is ambiguous
      if(tm[i][min(100, w + k.first)] == -1)tm[i][min(100, w + k.first)] = k.second + tm[i][w];
                                                                                      ^
0_0_36690935_15477.cpp:4:5: note: candidates are: int tm [60][110]
 int tm[60][110];
     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/ctime:42:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:49,
                 from 0_0_36690935_15477.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/time.h:88:10: note:                 struct tm
   struct tm {
          ^
0_0_36690935_15477.cpp:43:11: error: reference to 'tm' is ambiguous
      else tm[i][min(100, w + k.first)] = min(tm[i][min(100, w + k.first)], k.second + tm[i][w]);
           ^
0_0_36690935_15477.cpp:4:5: note: candidates are: int tm [60][110]
 int tm[60][110];
     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/ctime:42:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:49,
                 from 0_0_36690935_15477.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/time.h:88:10: note:                 struct tm
   struct tm {
          ^
0_0_36690935_15477.cpp:43:46: error: reference to 'tm' is ambiguous
      else tm[i][min(100, w + k.first)] = min(tm[i][min(100, w + k.first)], k.second + tm[i][w]);
                                              ^
0_0_36690935_15477.cpp:4:5: note: candidates are: int tm [60][110]
 int tm[60][110];
     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/ctime:42:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:49,
                 from 0_0_36690935_15477.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/time.h:88:10: note:                 struct tm
   struct tm {
          ^
0_0_36690935_15477.cpp:43:87: error: reference to 'tm' is ambiguous
      else tm[i][min(100, w + k.first)] = min(tm[i][min(100, w + k.first)], k.second + tm[i][w]);
                                                                                       ^
0_0_36690935_15477.cpp:4:5: note: candidates are: int tm [60][110]
 int tm[60][110];
     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/ctime:42:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:49,
                 from 0_0_36690935_15477.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/time.h:88:10: note:                 struct tm
   struct tm {
          ^
0_0_36690935_15477.cpp:45:8: error: reference to 'tm' is ambiguous
     if(tm[i][k.first] == -1)tm[i][k.first] = k.second;
        ^
0_0_36690935_15477.cpp:4:5: note: candidates are: int tm [60][110]
 int tm[60][110];
     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/ctime:42:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:49,
                 from 0_0_36690935_15477.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/time.h:88:10: note:                 struct tm
   struct tm {
          ^
0_0_36690935_15477.cpp:45:29: error: reference to 'tm' is ambiguous
     if(tm[i][k.first] == -1)tm[i][k.first] = k.second;
                             ^
0_0_36690935_15477.cpp:4:5: note: candidates are: int tm [60][110]
 int tm[60][110];
     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/ctime:42:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:49,
                 from 0_0_36690935_15477.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/time.h:88:10: note:                 struct tm
   struct tm {
          ^
0_0_36690935_15477.cpp:46:10: error: reference to 'tm' is ambiguous
     else tm[i][k.first] = min(tm[i][k.first], k.second);
          ^
0_0_36690935_15477.cpp:4:5: note: candidates are: int tm [60][110]
 int tm[60][110];
     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/ctime:42:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:49,
                 from 0_0_36690935_15477.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/time.h:88:10: note:                 struct tm
   struct tm {
          ^
0_0_36690935_15477.cpp:46:31: error: reference to 'tm' is ambiguous
     else tm[i][k.first] = min(tm[i][k.first], k.second);
                               ^
0_0_36690935_15477.cpp:4:5: note: candidates are: int tm [60][110]
 int tm[60][110];
     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/ctime:42:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:49,
                 from 0_0_36690935_15477.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/time.h:88:10: note:                 struct tm
   struct tm {
          ^
0_0_36690935_15477.cpp:53:8: error: reference to 'tm' is ambiguous
     if(tm[i][j] == -1)continue;
        ^
0_0_36690935_15477.cpp:4:5: note: candidates are: int tm [60][110]
 int tm[60][110];
     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/ctime:42:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:49,
                 from 0_0_36690935_15477.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/time.h:88:10: note:                 struct tm
   struct tm {
          ^
0_0_36690935_15477.cpp:56:25: error: reference to 'tm' is ambiguous
      for(int w = 0; w + tm[i][j] <= t; w++){
   


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2025-02-17 12:48:22, Gzip enabled