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_29682981_29560.cpp: In function 'LL cell(LL, LL)':
0_0_29682981_29560.cpp:13:2: error: 'nbsp' was not declared in this scope
       return fac[a]*inv[b]%mod*inv[a-b]%mod;
  ^
0_0_29682981_29560.cpp: In function 'void init()':
0_0_29682981_29560.cpp:17:2: error: 'nbsp' was not declared in this scope
     for(int i=2;i<maxn;i++)
  ^
0_0_29682981_29560.cpp:19:48: error: 'i' was not declared in this scope
         fac[i]=fac[i-1]*i%mod;
                                                ^
0_0_29682981_29560.cpp: At global scope:
0_0_29682981_29560.cpp:26:8: error: redeclaration of 'int& Q::nbsp'
     LL l,r,id;
        ^
0_0_29682981_29560.cpp:26:2: note: previous declaration 'int& Q::nbsp'
     LL l,r,id;
  ^
0_0_29682981_29560.cpp:26:14: error: redeclaration of 'int& Q::nbsp'
     LL l,r,id;
              ^
0_0_29682981_29560.cpp:26:2: note: previous declaration 'int& Q::nbsp'
     LL l,r,id;
  ^
0_0_29682981_29560.cpp:27:2: error: redeclaration of 'int& Q::nbsp'
     LL S;
  ^
0_0_29682981_29560.cpp:26:2: note: previous declaration 'int& Q::nbsp'
     LL l,r,id;
  ^
0_0_29682981_29560.cpp:27:8: error: redeclaration of 'int& Q::nbsp'
     LL S;
        ^
0_0_29682981_29560.cpp:26:2: note: previous declaration 'int& Q::nbsp'
     LL l,r,id;
  ^
0_0_29682981_29560.cpp:27:14: error: redeclaration of 'int& Q::nbsp'
     LL S;
              ^
0_0_29682981_29560.cpp:26:2: note: previous declaration 'int& Q::nbsp'
     LL l,r,id;
  ^
0_0_29682981_29560.cpp:28:8: error: use of deleted function 'Q::Q()'
 }q[maxn];
        ^
0_0_29682981_29560.cpp:24:8: note: 'Q::Q()' is implicitly deleted because the default definition would be ill-formed:
 struct Q
        ^
0_0_29682981_29560.cpp:24:8: error: uninitialized reference member in 'struct Q'
0_0_29682981_29560.cpp:26:2: note: 'int& Q::nbsp' should be initialized
     LL l,r,id;
  ^
0_0_29682981_29560.cpp: In function 'int cmp1(Q, Q)':
0_0_29682981_29560.cpp:34:2: error: 'nbsp' was not declared in this scope
     if(buf[q1.l]==buf[q2.l]) return q1.r<q2.r;
  ^
0_0_29682981_29560.cpp: In function 'int cmp2(Q, Q)':
0_0_29682981_29560.cpp:39:2: error: 'nbsp' was not declared in this scope
     return q1.id < q2.id;
  ^
0_0_29682981_29560.cpp: In function 'int main()':
0_0_29682981_29560.cpp:43:2: error: 'nbsp' was not declared in this scope
     int t;
  ^
0_0_29682981_29560.cpp:48:48: error: 'i' was not declared in this scope
         buf[i] = i/len+1;
                                                ^
0_0_29682981_29560.cpp:52:60: error: 'i' was not declared in this scope
         scanf("%d%d",&q[i].l,&q[i].r);
                                                            ^
0_0_29682981_29560.cpp:63:54: error: 'i' was not declared in this scope
         while(l<q[i].l)
                                                      ^
0_0_29682981_29560.cpp:68:54: error: 'i' was not declared in this scope
         while(l>q[i].l)
                                                      ^
0_0_29682981_29560.cpp:74:54: error: 'i' was not declared in this scope
         while(r>q[i].r)
                                                      ^
0_0_29682981_29560.cpp:79:54: error: 'i' was not declared in this scope
         while(r<q[i].r)
                                                      ^
0_0_29682981_29560.cpp:84:46: error: 'i' was not declared in this scope
         q[i].S = (ans+mod)%mod;
                                              ^
0_0_29682981_29560.cpp:90:62: error: 'i' was not declared in this scope
         printf("%lld\n",q[i].S);
                                                              ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
                 from 0_0_29682981_29560.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h: In instantiation of 'void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = Q*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<int (*)(Q, Q)>]':
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1884:70:   required from 'void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = Q*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<int (*)(Q, Q)>]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1970:55:   required from 'void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = Q*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<int (*)(Q, Q)>]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:4716:78:   required from 'void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = Q*; _Compare = int (*)(Q, Q)]'
0_0_29682981_29560.cpp:56:39:   required from here
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1851:17: error: use of deleted function 'Q& Q::operator=(Q&&)'
        *__first = _GLIBCXX_MOVE(__val);
                 ^
0_0_29682981_29560.cpp:24:8: note: 'Q& Q::operator=(Q&&)' is implicitly deleted because the default definition would be ill-formed:
 struct Q
        ^
0_0_29682981_29560.cpp:24:8: error: non-static reference member 'int& Q::nbsp', can't use default assignment operator
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:61:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
                 from 0_0_29682981_29560.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_heap.h: In instantiation of 'void std::__pop_heap(_RandomAccessIterator, _RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = Q*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<int (*)(Q, Q)>]':
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1676:50:   required from 'void std::__heap_select(_RandomAccessIterator, _RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = Q*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<int (*)(Q, Q)>]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1932:59:   required from 'void std::__partial_sort(_RandomAccessIterator, _RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = Q*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<int (*)(Q, Q)>]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1947:59:   required from 'void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = Q*; _Size = long long int; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<int (*)(Q, Q)>]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1969:11:   required from 'void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = Q*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<int (*)(Q, Q)>]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:4716:78:   required from 'void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = Q*; _Compare = int (*)(Q, Q)]'
0_0_29682981_29560.cpp:56:39:   required from here
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_heap.h:244:17: error: use of deleted function 'Q& Q::operator=(Q&&)'
       *__result = _GLIBCXX_MOVE(*__first);
                 ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_heap.h: In instantiation of 'void std::__adjust_heap(_RandomAccessIterator, _Distance, _Distance, _Tp, _Compare) [with _RandomAccessIterator = Q*; _Distance = long long int; _Tp = Q; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<int (*)(Q, Q)>]':
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_heap.h:334:15:   required from 'void std::__make_heap(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = Q*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<int (*)(Q, Q)>]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1673:49:   required from 'void std::__heap_select(_RandomAccessIterator, _RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = Q*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<int (*)(Q, Q)>]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1932:59:   required from 'void std::__partial_sort(_RandomAccessIterator, _RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = Q*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<int (*)(Q, Q)>]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1947:59:   required from 'void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = Q*; _Size = long long int; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<int (*)(Q, Q)>]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1969:11:   required from 'void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = Q*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<int (*)(Q, Q)>]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_al


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-07-06 07:04:38, Gzip enabled