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_22075346_9814.cpp: In function 'void add(int, int, int)':
0_0_22075346_9814.cpp:33:23: error: invalid types 'int[int]' for array subscript
  ES[++EC].s = s; EC[EC].mask = mask; ES[EC].no = ++cnt[now]; ES[EC].next = tot[x]; tot[x] = ES + EC;
                       ^
0_0_22075346_9814.cpp: In function 'void calc(int, int, int)':
0_0_22075346_9814.cpp:65:15: error: too few arguments to function 'void add(int, int, int)'
   add(s, delta);
               ^
0_0_22075346_9814.cpp:23:6: note: declared here
 void add(int s, int mask, int delta) {
      ^
0_0_22075346_9814.cpp:68:34: error: too few arguments to function 'void add(int, int, int)'
     add(s | (3 << (j * 2)), delta);
                                  ^
0_0_22075346_9814.cpp:23:6: note: declared here
 void add(int s, int mask, int delta) {
      ^
0_0_22075346_9814.cpp:69:34: error: too few arguments to function 'void add(int, int, int)'
     add(s | (3 << (m * 2)), delta);
                                  ^
0_0_22075346_9814.cpp:23:6: note: declared here
 void add(int s, int mask, int delta) {
      ^
0_0_22075346_9814.cpp:71:55: error: too few arguments to function 'void add(int, int, int)'
    else add(s | (1 << (j * 2)) | (2 << (m * 2)), delta);
                                                       ^
0_0_22075346_9814.cpp:23:6: note: declared here
 void add(int s, int mask, int delta) {
      ^
0_0_22075346_9814.cpp:78:17: error: too few arguments to function 'void add(int, int, int)'
    add(ns, delta);
                 ^
0_0_22075346_9814.cpp:23:6: note: declared here
 void add(int s, int mask, int delta) {
      ^
0_0_22075346_9814.cpp:81:84: error: too few arguments to function 'void add(int, int, int)'
    if (up == 1) p = findr(s, j, 0), add(ns ^ (2 << (p * 2)) ^ (3 << (p * 2)), delta);
                                                                                    ^
0_0_22075346_9814.cpp:23:6: note: declared here
 void add(int s, int mask, int delta) {
      ^
0_0_22075346_9814.cpp:82:76: error: too few arguments to function 'void add(int, int, int)'
    else p = findl(s, j, 0), add(ns ^ (1 << (p * 2)) ^ (3 << (p * 2)), delta);
                                                                            ^
0_0_22075346_9814.cpp:23:6: note: declared here
 void add(int s, int mask, int delta) {
      ^
0_0_22075346_9814.cpp:85:86: error: too few arguments to function 'void add(int, int, int)'
    if (left == 1) p = findr(s, j, 1), add(ns ^ (2 << (p * 2)) ^ (3 << (p * 2)), delta);
                                                                                      ^
0_0_22075346_9814.cpp:23:6: note: declared here
 void add(int s, int mask, int delta) {
      ^
0_0_22075346_9814.cpp:86:77: error: too few arguments to function 'void add(int, int, int)'
    else p = findl(s, j, -1), add(ns ^ (1 << (p * 2)) ^ (3 << (p * 2)), delta); 
                                                                             ^
0_0_22075346_9814.cpp:23:6: note: declared here
 void add(int s, int mask, int delta) {
      ^
0_0_22075346_9814.cpp:90:51: error: too few arguments to function 'void add(int, int, int)'
    add(ns ^ (2 << (p * 2)) ^ (1 << (p * 2)), delta); 
                                                   ^
0_0_22075346_9814.cpp:23:6: note: declared here
 void add(int s, int mask, int delta) {
      ^
0_0_22075346_9814.cpp:94:51: error: too few arguments to function 'void add(int, int, int)'
    add(ns ^ (1 << (p * 2)) ^ (2 << (p * 2)), delta);
                                                   ^
0_0_22075346_9814.cpp:23:6: note: declared here
 void add(int s, int mask, int delta) {
      ^
0_0_22075346_9814.cpp:96:47: error: too few arguments to function 'void add(int, int, int)'
   else if (left == 2 && up == 1) add(ns, delta);
                                               ^
0_0_22075346_9814.cpp:23:6: note: declared here
 void add(int s, int mask, int delta) {
      ^
0_0_22075346_9814.cpp:101:34: error: too few arguments to function 'void add(int, int, int)'
    add(ns | (t << (j * 2)), delta);
                                  ^
0_0_22075346_9814.cpp:23:6: note: declared here
 void add(int s, int mask, int delta) {
      ^
0_0_22075346_9814.cpp:102:34: error: too few arguments to function 'void add(int, int, int)'
    add(ns | (t << (m * 2)), delta);
                                  ^
0_0_22075346_9814.cpp:23:6: note: declared here
 void add(int s, int mask, int delta) {
      ^
0_0_22075346_9814.cpp:105:52: error: too few arguments to function 'void add(int, int, int)'
     add(ns ^ (2 << (p * 2)) ^ (3 << (p * 2)), delta);
                                                    ^
0_0_22075346_9814.cpp:23:6: note: declared here
 void add(int s, int mask, int delta) {
      ^
0_0_22075346_9814.cpp:109:52: error: too few arguments to function 'void add(int, int, int)'
     add(ns ^ (1 << (p * 2)) ^ (3 << (p * 2)), delta);
                                                    ^
0_0_22075346_9814.cpp:23:6: note: declared here
 void add(int s, int mask, int delta) {
      ^
0_0_22075346_9814.cpp:113:34: error: too few arguments to function 'void add(int, int, int)'
    add(ns | (3 << (j * 2)), delta);
                                  ^
0_0_22075346_9814.cpp:23:6: note: declared here
 void add(int s, int mask, int delta) {
      ^
0_0_22075346_9814.cpp:114:34: error: too few arguments to function 'void add(int, int, int)'
    add(ns | (3 << (m * 2)), delta);
                                  ^
0_0_22075346_9814.cpp:23:6: note: declared here
 void add(int s, int mask, int delta) {
      ^
0_0_22075346_9814.cpp: In function 'void solve()':
0_0_22075346_9814.cpp:120:39: error: no match for 'operator=' (operand types are 'pii {aka std::pair<int, int>}' and 'int')
  cnt[0] = 1; f[0][1] = 1; state[0][1] = 0;
                                       ^
0_0_22075346_9814.cpp:120:39: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:64:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
                 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_22075346_9814.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:158:7: note: std::pair<_T1, _T2>& std::pair<_T1, _T2>::operator=(const std::pair<_T1, _T2>&) [with _T1 = int; _T2 = int]
       operator=(const pair& __p)
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:158:7: note:   no known conversion for argument 1 from 'int' to 'const std::pair<int, int>&'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:166:7: note: std::pair<_T1, _T2>& std::pair<_T1, _T2>::operator=(std::pair<_T1, _T2>&&) [with _T1 = int; _T2 = int]
       operator=(pair&& __p)
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:166:7: note:   no known conversion for argument 1 from 'int' to 'std::pair<int, int>&&'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:177:2: note: template<class _U1, class _U2> std::pair<_T1, _T2>& std::pair<_T1, _T2>::operator=(const std::pair<_U1, _U2>&) [with _U1 = _U1; _U2 = _U2; _T1 = int; _T2 = int]
  operator=(const pair<_U1, _U2>& __p)
  ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:177:2: note:   template argument deduction/substitution failed:
0_0_22075346_9814.cpp:120:39: note:   mismatched types 'const std::pair<_T1, _T2>' and 'int'
  cnt[0] = 1; f[0][1] = 1; state[0][1] = 0;
                                       ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:64:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
                 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_22075346_9814.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:186:2: note: template<class _U1, class _U2> std::pair<_T1, _T2>& std::pair<_T1, _T2>::operator=(std::pair<_U1, _U2>&&) [with _U1 = _U1; _U2 = _U2; _T1 = int; _T2 = int]
  operator=(pair<_U1, _U2>&& __p)
  ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:186:2: note:   template argument deduction/substitution failed:
0_0_22075346_9814.cpp:120:39: note:   mismatched types 'std::pair<_T1, _T2>' and 'int'
  cnt[0] = 1; f[0][1] = 1; state[0][1] = 0;
                                       ^
0_0_22075346_9814.cpp:132:52: error: too many arguments to function 'void calc(int, int, int)'
      if (map_[i][j] != 'X') calc(0, nmask, s, delta);
                                                    ^
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-27 03:49:38, Gzip enabled