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_19146956_2345.cpp:23:12: error: 'node get_s [1010]' redeclared as different kind of symbol
 }get_s[1010];
            ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/wchar.h:9:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/cwchar:44,
                 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_19146956_2345.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/sec_api/stdio_s.h:92:3: note: previous declaration 'template<long long unsigned int __size> char* get_s(char (&)[__size])'
   __DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_0(char*,get_s,char,_DstBuf)
   ^
0_0_19146956_2345.cpp: In function 'void work()':
0_0_19146956_2345.cpp:36:13: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator+'
  sort(get_s+1,get_s+n+1,cmp);
             ^
0_0_19146956_2345.cpp:36:21: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator+'
  sort(get_s+1,get_s+n+1,cmp);
                     ^
0_0_19146956_2345.cpp:38:21: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   node now = get_s[i];
                     ^
0_0_19146956_2345.cpp:44:12: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
     get_s[i].word[cnt][lenw++] = now.s[j];
            ^
0_0_19146956_2345.cpp:50:10: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   get_s[i].sumw = cnt;
          ^
0_0_19146956_2345.cpp: In function 'void solve()':
0_0_19146956_2345.cpp:59:37: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
    while (l<que[i].sumw && r<get_s[j].sumw){
                                     ^
0_0_19146956_2345.cpp:61:39: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
     if (!strcmp(que[i].word[l],get_s[j].word[r])){
                                       ^
0_0_19146956_2345.cpp:65:28: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
       printf("%s\n",get_s[j].s);
                            ^
0_0_19146956_2345.cpp: In function 'int main()':
0_0_19146956_2345.cpp:86:16: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
    gets(get_s[i].s);
                ^
0_0_19146956_2345.cpp:87:28: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
    int len = strlen(get_s[i].s);
                            ^
0_0_19146956_2345.cpp:88:11: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
    get_s[i].s[len++] = ' '; get_s[i].s[len] = '\0';
           ^
0_0_19146956_2345.cpp:88:36: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
    get_s[i].s[len++] = ' '; get_s[i].s[len] = '\0';
                                    ^
0_0_19146956_2345.cpp:89:23: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
    scanf("%d",&get_s[i].sum);
                       ^
0_0_19146956_2345.cpp:90:11: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
    get_s[i].id = i;
           ^


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-12-02 08:56:00, Gzip enabled