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_33547493_8880.cpp:11:8: error: redefinition of 'struct stat'
 struct stat{
        ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/wchar.h:380: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++/istream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/sstream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/complex:45,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ccomplex:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:52,
                 from 0_0_33547493_8880.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/_mingw_stat64.h:34:10: error: previous definition of 'struct stat'
   struct stat {
          ^
0_0_33547493_8880.cpp:24:8: error: invalid type in declaration before ';' token
 }set[N];
        ^
0_0_33547493_8880.cpp: In function 'void build(int, int, int)':
0_0_33547493_8880.cpp:45:11: error: no match for 'operator=' (operand types are 'stat' and 'int')
     p[u].x=set[col[idfn[l]]];
           ^
0_0_33547493_8880.cpp:45:11: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/wchar.h:380: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++/istream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/sstream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/complex:45,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ccomplex:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:52,
                 from 0_0_33547493_8880.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/_mingw_stat64.h:34:10: note: stat& stat::operator=(const stat&)
   struct stat {
          ^
GCC4.9.2/x86_64-w64-mingw32/include/_mingw_stat64.h:34:10: note:   no known conversion for argument 1 from 'int' to 'const stat&'
GCC4.9.2/x86_64-w64-mingw32/include/_mingw_stat64.h:34:10: note: stat& stat::operator=(stat&&)
GCC4.9.2/x86_64-w64-mingw32/include/_mingw_stat64.h:34:10: note:   no known conversion for argument 1 from 'int' to 'stat&&'
0_0_33547493_8880.cpp:50:19: error: no match for 'operator^' (operand types are 'stat' and 'stat')
   p[u].x=p[u<<1].x^p[u<<1|1].x;
                   ^
0_0_33547493_8880.cpp: In function 'void modify(int, int, int)':
0_0_33547493_8880.cpp:56:11: error: no match for 'operator=' (operand types are 'stat' and 'int')
     p[u].x=set[c];
           ^
0_0_33547493_8880.cpp:56:11: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/wchar.h:380: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++/istream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/sstream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/complex:45,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ccomplex:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:52,
                 from 0_0_33547493_8880.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/_mingw_stat64.h:34:10: note: stat& stat::operator=(const stat&)
   struct stat {
          ^
GCC4.9.2/x86_64-w64-mingw32/include/_mingw_stat64.h:34:10: note:   no known conversion for argument 1 from 'int' to 'const stat&'
GCC4.9.2/x86_64-w64-mingw32/include/_mingw_stat64.h:34:10: note: stat& stat::operator=(stat&&)
GCC4.9.2/x86_64-w64-mingw32/include/_mingw_stat64.h:34:10: note:   no known conversion for argument 1 from 'int' to 'stat&&'
0_0_33547493_8880.cpp:60:19: error: no match for 'operator^' (operand types are 'stat' and 'stat')
   p[u].x=p[u<<1].x^p[u<<1|1].x;
                   ^
0_0_33547493_8880.cpp: In function 'stat query(int, int, int)':
0_0_33547493_8880.cpp:68:32: error: no match for 'operator^' (operand types are 'stat' and 'stat')
   return query(u<<1,l,p[u].mid)^query(u<<1|1,p[u].mid+1,r);
                                ^
0_0_33547493_8880.cpp: In function 'stat query(int, int)':
0_0_33547493_8880.cpp:72:7: error: 'struct stat' has no member named 'setmax'
   ans.setmax();
       ^
0_0_33547493_8880.cpp:75:12: error: no match for 'operator^' (operand types are 'stat' and 'stat')
     ans=ans^query(1,dfn[top[v]],dfn[v]);
            ^
0_0_33547493_8880.cpp:79:10: error: no match for 'operator^' (operand types are 'stat' and 'stat')
   ans=ans^query(1,dfn[u],dfn[v]);
          ^
0_0_33547493_8880.cpp: In function 'int main()':
0_0_33547493_8880.cpp:90:33: error: request for member 'gen' in 'set[i]', which is of non-class type 'int'
     for(int i=1;i<=n;i++)set[i].gen();
                                 ^
0_0_33547493_8880.cpp:110:36: error: 'struct stat' has no member named 'v'
         for(int i=0;i<K;i++)cnt+=f.v[i]<g.v[i];
                                    ^
0_0_33547493_8880.cpp:110:43: error: 'struct stat' has no member named 'v'
         for(int i=0;i<K;i++)cnt+=f.v[i]<g.v[i];
                                           ^


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-01-11 03:57:51, Gzip enabled