/ Vijos /

记录详情

Compile Error

foo.cpp:1:14: error: 'maxc' was not declared in this scope
 int sz, m, U[maxc], D[maxc], L[maxc], R[maxc], S[maxc], col[maxc], row[maxc], B[9][9];
              ^
foo.cpp:1:23: error: 'maxc' was not declared in this scope
 int sz, m, U[maxc], D[maxc], L[maxc], R[maxc], S[maxc], col[maxc], row[maxc], B[9][9];
                       ^
foo.cpp:1:32: error: 'maxc' was not declared in this scope
 int sz, m, U[maxc], D[maxc], L[maxc], R[maxc], S[maxc], col[maxc], row[maxc], B[9][9];
                                ^
foo.cpp:1:41: error: 'maxc' was not declared in this scope
 int sz, m, U[maxc], D[maxc], L[maxc], R[maxc], S[maxc], col[maxc], row[maxc], B[9][9];
                                         ^
foo.cpp:1:50: error: 'maxc' was not declared in this scope
 int sz, m, U[maxc], D[maxc], L[maxc], R[maxc], S[maxc], col[maxc], row[maxc], B[9][9];
                                                  ^
foo.cpp:1:61: error: 'maxc' was not declared in this scope
 int sz, m, U[maxc], D[maxc], L[maxc], R[maxc], S[maxc], col[maxc], row[maxc], B[9][9];
                                                             ^
foo.cpp:1:72: error: 'maxc' was not declared in this scope
 int sz, m, U[maxc], D[maxc], L[maxc], R[maxc], S[maxc], col[maxc], row[maxc], B[9][9];
                                                                        ^
foo.cpp:3:1: error: 'Pii' does not name a type
 Pii Edit[maxc];
 ^
foo.cpp: In function 'void Init()':
foo.cpp:8:6: error: 'i' was not declared in this scope
  rep(i, 0, sz) U[i]=D[i]=i, L[i]=i-1, R[i]=i+1, S[i]=0;
      ^
foo.cpp:8:14: error: 'rep' was not declared in this scope
  rep(i, 0, sz) U[i]=D[i]=i, L[i]=i-1, R[i]=i+1, S[i]=0;
              ^
foo.cpp:8:16: error: expected ';' before 'U'
  rep(i, 0, sz) U[i]=D[i]=i, L[i]=i-1, R[i]=i+1, S[i]=0;
                ^
foo.cpp:9:2: error: 'R' was not declared in this scope
  R[sz]=0, L[0]=sz;
  ^
foo.cpp:9:11: error: 'L' was not declared in this scope
  R[sz]=0, L[0]=sz;
           ^
foo.cpp: In function 'void Add(int, int, int)':
foo.cpp:16:6: error: 'i' was not declared in this scope
  rep(i, 0, 3) if (S[q[i]]<0) return;
      ^
foo.cpp:16:13: error: 'rep' was not declared in this scope
  rep(i, 0, 3) if (S[q[i]]<0) return;
             ^
foo.cpp:16:15: error: expected ';' before 'if'
  rep(i, 0, 3) if (S[q[i]]<0) return;
               ^
foo.cpp:17:7: error: 'Edit' was not declared in this scope
  m++; Edit[m]=Pii(x*9+y,o);
       ^
foo.cpp:17:26: error: 'Pii' was not declared in this scope
  m++; Edit[m]=Pii(x*9+y,o);
                          ^
foo.cpp:19:15: error: expected ';' before 'sz'
  rep(i, 0, 3) sz++, L[sz]=sz-1, R[sz]=sz+1, U[sz]=U[q[i]], D[sz]=q[i], U[D[sz]]=sz, D[U[sz]]=sz, row[sz]=m, col[sz]=q[i], S[q[i]]++;
               ^
foo.cpp:20:2: error: 'L' was not declared in this scope
  L[fir]=sz, R[sz]=fir;
  ^
foo.cpp:20:13: error: 'R' was not declared in this scope
  L[fir]=sz, R[sz]=fir;
             ^
foo.cpp: In function 'void remove(int)':
foo.cpp:27:2: error: 'S' was not declared in this scope
  S[x]*=-1, S[x]--, L[R[x]]=L[x], R[L[x]]=R[x];
  ^
foo.cpp:27:20: error: 'L' was not declared in this scope
  S[x]*=-1, S[x]--, L[R[x]]=L[x], R[L[x]]=R[x];
                    ^
foo.cpp:27:22: error: 'R' was not declared in this scope
  S[x]*=-1, S[x]--, L[R[x]]=L[x], R[L[x]]=R[x];
                      ^
foo.cpp:28:8: error: 'D' was not declared in this scope
  REP(i,D,x) REP(j,R,i) U[D[j]]=U[j], D[U[j]]=D[j], S[col[j]]--;
        ^
foo.cpp:23:30: note: in definition of macro 'REP'
 #define REP(i,A,x) for(int i=A[x]; i!=x; i=A[i])
                              ^
foo.cpp:28:24: error: 'U' was not declared in this scope
  REP(i,D,x) REP(j,R,i) U[D[j]]=U[j], D[U[j]]=D[j], S[col[j]]--;
                        ^
foo.cpp:28:54: error: 'col' was not declared in this scope
  REP(i,D,x) REP(j,R,i) U[D[j]]=U[j], D[U[j]]=D[j], S[col[j]]--;
                                                      ^
foo.cpp: In function 'void restore(int)':
foo.cpp:33:8: error: 'U' was not decl

信息

递交者
类型
递交
题目
P1345 数独大赛
语言
C++
递交时间
2016-05-25 09:56:51
评测时间
2016-05-25 09:56:53
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes