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_33297598_24928.cpp:18:8: error: conflicting declaration 'int t [210000]'
 int t[N];
        ^
0_0_33297598_24928.cpp:7:5: note: previous declaration as 'int t'
 int t,n;
     ^
0_0_33297598_24928.cpp: In function 'void add(int, int)':
0_0_33297598_24928.cpp:21:30: error: expression cannot be used as a function
  for(int i=x;i<=n;i+=lowbit(i)) t[i]+=v;
                              ^
0_0_33297598_24928.cpp:21:36: error: invalid types 'int[int]' for array subscript
  for(int i=x;i<=n;i+=lowbit(i)) t[i]+=v;
                                    ^
0_0_33297598_24928.cpp: In function 'int cal(int)':
0_0_33297598_24928.cpp:27:29: error: expression cannot be used as a function
  for(int i=x;i>0;i-=lowbit(i)) res+=t[i];
                             ^
0_0_33297598_24928.cpp:27:40: error: invalid types 'int[int]' for array subscript
  for(int i=x;i>0;i-=lowbit(i)) res+=t[i];
                                        ^
0_0_33297598_24928.cpp:28:2: error: return-statement with no value, in function returning 'int' [-fpermissive]
  return;
  ^
0_0_33297598_24928.cpp: In function 'int find(int)':
0_0_33297598_24928.cpp:38:22: error: invalid types 'int[int]' for array subscript
   if(now>n||sum+t[now]>=k) now-=p2[i];
                      ^
0_0_33297598_24928.cpp:39:18: error: invalid types 'int[int]' for array subscript
   else sum+=t[now];
                  ^
0_0_33297598_24928.cpp: In function 'void addedge(int, int)':
0_0_33297598_24928.cpp:45:2: error: 'E' was not declared in this scope
  E++;
  ^
0_0_33297598_24928.cpp:46:21: error: 'h' was not declared in this scope
  e[E].to=v,e[E].nxt=h[u];
                     ^
0_0_33297598_24928.cpp: In function 'void pre(int, int)':
0_0_33297598_24928.cpp:104:12: error: 'h' was not declared in this scope
  for(int i=h[u];i;i=e[i].nxt)
            ^
0_0_33297598_24928.cpp: In function 'void ope(int, int, int)':
0_0_33297598_24928.cpp:122:12: error: 'h' was not declared in this scope
  for(int i=h[u];i;i=e[i].nxt)
            ^
0_0_33297598_24928.cpp:126:10: error: 'cle' was not declared in this scope
   cle(v,u);
          ^
0_0_33297598_24928.cpp: In function 'void sol(int, int)':
0_0_33297598_24928.cpp:135:8: error: 'k' was not declared in this scope
  if(sl>k||sr<k) return;
        ^
0_0_33297598_24928.cpp:136:15: error: no matching function for call to 'find()'
  int pos=find()
               ^
0_0_33297598_24928.cpp:136:15: note: candidates are:
0_0_33297598_24928.cpp:30:5: note: int find(int)
 int find(int k)
     ^
0_0_33297598_24928.cpp:30:5: note:   candidate expects 1 argument, 0 provided
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:64,
                 from 0_0_33297598_24928.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:3770:5: note: template<class _IIter, class _Tp> _IIter std::find(_IIter, _IIter, const _Tp&)
     find(_InputIterator __first, _InputIterator __last,
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:3770:5: note:   template argument deduction/substitution failed:
0_0_33297598_24928.cpp:136:15: note:   candidate expects 3 arguments, 0 provided
  int pos=find()
               ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/locale_facets.h:48:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_ios.h:37,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:44,
                 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_33297598_24928.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/streambuf_iterator.h:369:5: note: template<class _CharT2> typename __gnu_cxx::__enable_if<std::__is_char<_CharT2>::__value, std::istreambuf_iterator<_CharT> >::__type std::find(std::istreambuf_iterator<_CharT>, std::istreambuf_iterator<_CharT>, const _CharT2&)
     find(istreambuf_iterator<_CharT> __first,
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/streambuf_iterator.h:369:5: note:   template argument deduction/substitution failed:
0_0_33297598_24928.cpp:136:15: note:   candidate expects 3 arguments, 0 provided
  int pos=find()
               ^
0_0_33297598_24928.cpp:137:1: error: expected ',' or ';' before '}' token
 }
 ^
0_0_33297598_24928.cpp: In function 'void dfs(int, int, int)':
0_0_33297598_24928.cpp:140:12: error: 'h' was not declared in this scope
  for(int i=h[u];i;i=e[i].nxt)
            ^
0_0_33297598_24928.cpp:147:12: error: 'h' was not declared in this scope
  for(int i=h[u];i;i=e[i].nxt)
            ^
0_0_33297598_24928.cpp: In function 'void Init()':
0_0_33297598_24928.cpp:160:26: error: 'h' was not declared in this scope
  for(int i=0;i<=cnt;i++) h[i]=0;
                          ^
0_0_33297598_24928.cpp:161:2: error: 'E' was not declared in this scope
  E=0;
  ^
0_0_33297598_24928.cpp:171:27: error: invalid types 'int[int]' for array subscript
  for(int i=0;i<=n;i++) t[i]=0;
                           ^


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-24 14:41:23, Gzip enabled