/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'int dfs(int)':
/in/foo.cc:26:40: warning: array subscript has type 'char' [-Wchar-subscripts]
   int e = cnt[r[i] & l[ny] & g[c[i][ny]]];
                                        ^
/in/foo.cc:28:43: warning: array subscript has type 'char' [-Wchar-subscripts]
    int num = pos[r[i] & l[ny] & g[c[i][ny]]];
                                           ^
/in/foo.cc:5:72: warning: array subscript has type 'char' [-Wchar-subscripts]
 #define update(x,y,num) r[x] ^= (1 << num),l[y] ^= (1 << num),g[c[x][y]] ^= (1 << num),ans[x * 9 + y] = '0' + num + 1;
                                                                        ^
/in/foo.cc:30:4: note: in expansion of macro 'update'
    update(i,ny,num)
    ^~~~~~
/in/foo.cc:5:72: warning: array subscript has type 'char' [-Wchar-subscripts]
 #define update(x,y,num) r[x] ^= (1 << num),l[y] ^= (1 << num),g[c[x][y]] ^= (1 << num),ans[x * 9 + y] = '0' + num + 1;
                                                                        ^
/in/foo.cc:32:4: note: in expansion of macro 'update'
    update(i,ny,num)
    ^~~~~~
/in/foo.cc:42:37: warning: array subscript has type 'char' [-Wchar-subscripts]
  for(int t = r[x] & l[y] & g[c[x][y]];t;t ^= lowbit(t)){
                                     ^
/in/foo.cc:5:72: warning: array subscript has type 'char' [-Wchar-subscripts]
 #define update(x,y,num) r[x] ^= (1 << num),l[y] ^= (1 << num),g[c[x][y]] ^= (1 << num),ans[x * 9 + y] = '0' + num + 1;
                                                                        ^
/in/foo.cc:44:3: note: in expansion of macro 'update'
   update(x,y,num)
   ^~~~~~
/in/foo.cc:5:72: warning: array subscript has type 'char' [-Wchar-subscripts]
 #define update(x,y,num) r[x] ^= (1 << num),l[y] ^= (1 << num),g[c[x][y]] ^= (1 << num),ans[x * 9 + y] = '0' + num + 1;
                                                                        ^
/in/foo.cc:46:3: note: in expansion of macro 'update'
   update(x,y,num)
   ^~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:66:18: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
     update(i,j,x - 1)
                ~~^~~
/in/foo.cc:5:39: note: in definition of macro 'update'
 #define update(x,y,num) r[x] ^= (1 << num),l[y] ^= (1 << num),g[c[x][y]] ^= (1 << num),ans[x * 9 + y] = '0' + num + 1;
                                       ^~~
/in/foo.cc:66:18: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
     update(i,j,x - 1)
                ~~^~~
/in/foo.cc:5:58: note: in definition of macro 'update'
 #define update(x,y,num) r[x] ^= (1 << num),l[y] ^= (1 << num),g[c[x][y]] ^= (1 << num),ans[x * 9 + y] = '0' + num + 1;
                                                          ^~~
/in/foo.cc:5:72: warning: array subscript has type 'char' [-Wchar-subscripts]
 #define update(x,y,num) r[x] ^= (1 << num),l[y] ^= (1 << num),g[c[x][y]] ^= (1 << num),ans[x * 9 + y] = '0' + num + 1;
                                                                        ^
/in/foo.cc:66:5: note: in expansion of macro 'update'
     update(i,j,x - 1)
     ^~~~~~
/in/foo.cc:66:18: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
     update(i,j,x - 1)
                ~~^~~
/in/foo.cc:5:83: note: in definition of macro 'update'
 #define update(x,y,num) r[x] ^= (1 << num),l[y] ^= (1 << num),g[c[x][y]] ^= (1 << num),ans[x * 9 + y] = '0' + num + 1;
                                                                                   ^~~
/in/foo.cc: In function 'int dfs(int)':
/in/foo.cc:22:17: warning: 'y' may be used uninitialized in this function [-Wmaybe-uninitialized]
  int nxt = 10,x,y;
                 ^
/in/foo.cc:42:36: warning: 'x' may be used uninitialized in this function [-Wmaybe-uninitialized]
  for(int t = r[x] & l[y] & g[c[x][y]];t;t ^= lowbit(t)){
                              ~~~~~~^
# 状态 耗时 内存占用
#1 Accepted 30ms 356.0 KiB
#2 Accepted 20ms 348.0 KiB
#3 Accepted 63ms 364.0 KiB
#4 Accepted 31ms 256.0 KiB
#5 Accepted 96ms 384.0 KiB
#6 Accepted 3ms 384.0 KiB
#7 Accepted 8ms 344.0 KiB
#8 Accepted 5ms 372.0 KiB
#9 Accepted 5ms 352.0 KiB
#10 Accepted 123ms 352.0 KiB

信息

递交者
类型
递交
题目
P1345 数独大赛
语言
C++
递交时间
2018-09-17 14:56:41
评测时间
2018-09-17 14:56:41
评测机
分数
100
总耗时
388ms
峰值内存
384.0 KiB