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_32561703_24910.cpp: In function 'int main()':
0_0_32561703_24910.cpp:59:10: error: reference to 'tm' is ambiguous
   cin >> tm[i];
          ^
0_0_32561703_24910.cpp:31:6: note: candidates are: char tm [10][25]
 char tm[10][25];
      ^
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_32561703_24910.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/wchar.h:895:10: note:                 struct tm
   struct tm {
          ^
0_0_32561703_24910.cpp:62:18: error: reference to 'tm' is ambiguous
    strncpy(n[i], tm[i], 4);
                  ^
0_0_32561703_24910.cpp:31:6: note: candidates are: char tm [10][25]
 char tm[10][25];
      ^
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_32561703_24910.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/wchar.h:895:10: note:                 struct tm
   struct tm {
          ^
0_0_32561703_24910.cpp:66:18: error: reference to 'tm' is ambiguous
    strncpy(n[i], tm[i] + 5, 4);
                  ^
0_0_32561703_24910.cpp:31:6: note: candidates are: char tm [10][25]
 char tm[10][25];
      ^
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_32561703_24910.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/wchar.h:895:10: note:                 struct tm
   struct tm {
          ^
0_0_32561703_24910.cpp:70:18: error: reference to 'tm' is ambiguous
    strncpy(n[i], tm[i] + 12, 4);
                  ^
0_0_32561703_24910.cpp:31:6: note: candidates are: char tm [10][25]
 char tm[10][25];
      ^
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_32561703_24910.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/wchar.h:895:10: note:                 struct tm
   struct tm {
          ^
0_0_32561703_24910.cpp:74:18: error: reference to 'tm' is ambiguous
    strncpy(n[i], tm[i] + 17, 4);
                  ^
0_0_32561703_24910.cpp:31:6: note: candidates are: char tm [10][25]
 char tm[10][25];
      ^
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_32561703_24910.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/wchar.h:895:10: note:                 struct tm
   struct tm {
          ^


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-20 03:22:23, Gzip enabled