/ Vijos /

记录详情

Accepted

foo.cc: In function ‘bool dfs(int)’:
foo.cc:16:29: warning: unnecessary parentheses in declaration of ‘i’ [-Wparentheses]
   16 | #define Rf(a,b,c) for(R int (a)=(b);(a)<=(c);++(a))
      |                             ^~~
foo.cc:54:5: note: in expansion of macro ‘Rf’
   54 |     Rf(i,1,n) if(lx[x]+ly[i]==w[x][i]&&!T[i]) {
      |     ^~
foo.cc:16:29: note: remove parentheses
   16 | #define Rf(a,b,c) for(R int (a)=(b);(a)<=(c);++(a))
      |                             ^~~
foo.cc:54:5: note: in expansion of macro ‘Rf’
   54 |     Rf(i,1,n) if(lx[x]+ly[i]==w[x][i]&&!T[i]) {
      |     ^~
foo.cc: In function ‘void update()’:
foo.cc:16:29: warning: unnecessary parentheses in declaration of ‘i’ [-Wparentheses]
   16 | #define Rf(a,b,c) for(R int (a)=(b);(a)<=(c);++(a))
      |                             ^~~
foo.cc:67:5: note: in expansion of macro ‘Rf’
   67 |     Rf(i,1,n) if(S[i])
      |     ^~
foo.cc:16:29: note: remove parentheses
   16 | #define Rf(a,b,c) for(R int (a)=(b);(a)<=(c);++(a))
      |                             ^~~
foo.cc:67:5: note: in expansion of macro ‘Rf’
   67 |     Rf(i,1,n) if(S[i])
      |     ^~
foo.cc:16:29: warning: unnecessary parentheses in declaration of ‘j’ [-Wparentheses]
   16 | #define Rf(a,b,c) for(R int (a)=(b);(a)<=(c);++(a))
      |                             ^~~
foo.cc:68:9: note: in expansion of macro ‘Rf’
   68 |         Rf(j,1,n) if(!T[j])
      |         ^~
foo.cc:16:29: note: remove parentheses
   16 | #define Rf(a,b,c) for(R int (a)=(b);(a)<=(c);++(a))
      |                             ^~~
foo.cc:68:9: note: in expansion of macro ‘Rf’
   68 |         Rf(j,1,n) if(!T[j])
      |         ^~
foo.cc:16:29: warning: unnecessary parentheses in declaration of ‘i’ [-Wparentheses]
   16 | #define Rf(a,b,c) for(R int (a)=(b);(a)<=(c);++(a))
      |                             ^~~
foo.cc:70:5: note: in expansion of macro ‘Rf’
   70 |     Rf(i,1,n) {
      |     ^~
foo.cc:16:29: note: remove parentheses
   16 | #define Rf(a,b,c) for(R int (a)=(b);(a)<=(c);++(a))
      |                             ^~~
foo.cc:70:5: note: in expansion of macro ‘Rf’
   70 |     Rf(i,1,n) {
      |     ^~
foo.cc: In function ‘void KM()’:
foo.cc:16:29: warning: unnecessary parentheses in declaration of ‘i’ [-Wparentheses]
   16 | #define Rf(a,b,c) for(R int (a)=(b);(a)<=(c);++(a))
      |                             ^~~
foo.cc:77:5: note: in expansion of macro ‘Rf’
   77 |     Rf(i,1,n) {
      |     ^~
foo.cc:16:29: note: remove parentheses
   16 | #define Rf(a,b,c) for(R int (a)=(b);(a)<=(c);++(a))
      |                             ^~~
foo.cc:77:5: note: in expansion of macro ‘Rf’
   77 |     Rf(i,1,n) {
      |     ^~
foo.cc:16:29: warning: unnecessary parentheses in declaration of ‘j’ [-Wparentheses]
   16 | #define Rf(a,b,c) for(R int (a)=(b);(a)<=(c);++(a))
      |                             ^~~
foo.cc:80:9: note: in expansion of macro ‘Rf’
   80 |         Rf(j,1,n) lx[i]=max(lx[i],w[i][j]);
      |         ^~
foo.cc:16:29: note: remove parentheses
   16 | #define Rf(a,b,c) for(R int (a)=(b);(a)<=(c);++(a))
      |                             ^~~
foo.cc:80:9: note: in expansion of macro ‘Rf’
   80 |         Rf(j,1,n) lx[i]=max(lx[i],w[i][j]);
      |         ^~
foo.cc:16:29: warning: unnecessary parentheses in declaration of ‘i’ [-Wparentheses]
   16 | #define Rf(a,b,c) for(R int (a)=(b);(a)<=(c);++(a))
      |                             ^~~
foo.cc:82:5: note: in expansion of macro ‘Rf’
   82 |     Rf(i,1,n) while(true) {
      |     ^~
foo.cc:16:29: note: remove parentheses
   16 | #define Rf(a,b,c) for(R int (a)=(b);(a)<=(c);++(a))
      |                             ^~~
foo.cc:82:5: note: in expansion of macro ‘Rf’
   82 |     Rf(i,1,n) while(true) {
      |     ^~
foo.cc:16:29: warning: unnecessary parentheses in declaration of ‘j’ [-Wparentheses]
   16 | #define Rf(a,b,c) for(R int (a)=(b);(a)<=(c);++(a))
      |                             ^~~
foo.cc:83:9: note: in expansion of macro ‘Rf’
   83 |         Rf(j,1,n) S[j]=T[j]=false;
      |         ^~
foo.cc:16:29: note: remove parentheses
   16 | #define Rf(a,b,c) for(R int (a)=(b);(a)<=(c);++(a))
      |                             ^~~
foo.cc:83:9: note: in expansion of macro ‘Rf’
   83 |         Rf(j,1,n) S[j]=T[j]=false;
      |         ^~
foo.cc: In function ‘int main()’:
foo.cc:16:29: warning: unnecessary parentheses in declaration of ‘i’ [-Wparentheses]
   16 | #define Rf(a,b,c) for(R int (a)=(b);(a)<=(c);++(a))
      |                             ^~~
foo.cc:101:5: note: in expansion of macro ‘Rf’
  101 |     Rf(i,1,n) {//定坐标
      |     ^~
foo.cc:16:29: note: remove parentheses
   16 | #define Rf(a,b,c) for(R int (a)=(b);(a)<=(c);++(a))
      |                             ^~~
foo.cc:101:5: note: in expansion of macro ‘Rf’
  101 |     Rf(i,1,n) {//定坐标
      |     ^~
foo.cc:16:29: warning: unnecessary parentheses in declaration of ‘i’ [-Wparentheses]
   16 | #define Rf(a,b,c) for(R int (a)=(b);(a)<=(c);++(a))
      |                             ^~~
foo.cc:108:5: note: in expansion of macro ‘Rf’
  108 |     Rf(i,1,n) {
      |     ^~
foo.cc:16:29: note: remove parentheses
   16 | #define Rf(a,b,c) for(R int (a)=(b);(a)<=(c);++(a))
      |                             ^~~
foo.cc:108:5: note: in expansion of macro ‘Rf’
  108 |     Rf(i,1,n) {
      |     ^~
foo.cc:16:29: warning: unnecessary parentheses in declaration of ‘i’ [-Wparentheses]
   16 | #define Rf(a,b,c) for(R int (a)=(b);(a)<=(c);++(a))
      |                             ^~~
foo.cc:115:5: note: in expansion of macro ‘Rf’
  115 |     Rf(i,1,n) Rf(j,1,n) w[i][j]=1;//普遍缘分的
      |     ^~
foo.cc:16:29: note: remove parentheses
   16 | #define Rf(a,b,c) for(R int (a)=(b);(a)<=(c);++(a))
      |                             ^~~
foo.cc:115:5: note: in expansion of macro ‘Rf’
  115 |     Rf(i,1,n) Rf(j,1,n) w[i][j]=1;//普遍缘分的
      |     ^~
foo.cc:16:29: warning: unnecessary parentheses in declaration of ‘j’ [-Wparentheses]
   16 | #define Rf(a,b,c) for(R int (a)=(b);(a)<=(c);++(a))
      |                             ^~~
foo.cc:115:15: note: in expansion of macro ‘Rf’
  115 |     Rf(i,1,n) Rf(j,1,n) w[i][j]=1;//普遍缘分的
      |               ^~
foo.cc:16:29: note: remove parentheses
   16 | #define Rf(a,b,c) for(R int (a)=(b);(a)<=(c);++(a))
      |                             ^~~
foo.cc:115:15: note: in expansion of macro ‘Rf’
  115 |     Rf(i,1,n) Rf(j,1,n) w[i][j]=1;//普遍缘分的
      |               ^~
foo.cc:16:29: warning: unnecessary parentheses in declaration of ‘I’ [-Wparentheses]
   16 | #define Rf(a,b,c) for(R int (a)=(b);(a)<=(c);++(a))
      |                             ^~~
foo.cc:125:5: note: in expansion of macro ‘Rf’
  125 |     Rf(I,1,n) Rf(J,1,n) {//暴力枚举两点是否可连
      |     ^~
foo.cc:16:29: note: remove parentheses
   16 | #define Rf(a,b,c) for(R int (a)=(b);(a)<=(c);++(a))
      |                             ^~~
foo.cc:125:5: note: in expansion of macro ‘Rf’
  125 |     Rf(I,1,n) Rf(J,1,n) {//暴力枚举两点是否可连
      |     ^~
foo.cc:16:29: warning: unnecessary parentheses in declaration of ‘J’ [-Wparentheses]
   16 | #define Rf(a,b,c) for(R int (a)=(b);(a)<=(c);++(a))
      |                             ^~~
foo.cc:125:15: note: in expansion of macro ‘Rf’
  125 |     Rf(I,1,n) Rf(J,1,n) {//暴力枚举两点是否可连
      |               ^~
foo.cc:16:29: note: remove parentheses
   16 | #define Rf(a,b,c) for(R int (a)=(b);(a)<=(c);++(a))
      |                             ^~~
foo.cc:125:15: note: in expansion of macro ‘Rf’
  125 |     Rf(I,1,n) Rf(J,1,n) {//暴力枚举两点是否可连
      |               ^~
foo.cc:16:29: warning: unnecessary parentheses in declaration of ‘i’ [-Wparentheses]
   16 | #define Rf(a,b,c) for(R int (a)=(b);(a)<=(c);++(a))
      |                             ^~~
foo.cc:131:13: note: in expansion of macro ‘Rf’
  131 |             Rf(i,1,n) {
      |             ^~
foo.cc:16:29: note: remove parentheses
   16 | #define Rf(a,b,c) for(R int (a)=(b);(a)<=(c);++(a))
      |                             ^~~
foo.cc:131:13: note: in expansion of macro ‘Rf’
  131 |             Rf(i,1,n) {
      |             ^~
foo.cc:16:29: warning: unnecessary parentheses in declaration of ‘j’ [-Wparentheses]
   16 | #define Rf(a,b,c) for(R int (a)=(b);(a)<=(c);++(a))
      |                             ^~~
foo.cc:141:20: note: in expansion of macro ‘Rf’
  141 |             if(pd) Rf(j,1,n) {
      |                    ^~
foo.cc:16:29: note: remove parentheses
   16 | #define Rf(a,b,c) for(R int (a)=(b);(a)<=(c);++(a))
      |                             ^~~
foo.cc:141:20: note: in expansion of macro ‘Rf’
  141 |             if(pd) Rf(j,1,n) {
      |                    ^~
foo.cc:16:29: warning: unnecessary parentheses in declaration of ‘i’ [-Wparentheses]
   16 | #define Rf(a,b,c) for(R int (a)=(b);(a)<=(c);++(a))
      |                             ^~~
foo.cc:155:5: note: in expansion of macro ‘Rf’
  155 |     Rf(i,1,n) ans+=lx[i]+ly[i];//顶标和即是答案
      |     ^~
foo.cc:16:29: note: remove parentheses
   16 | #define Rf(a,b,c) for(R int (a)=(b);(a)<=(c);++(a))
      |                             ^~~
foo.cc:155:5: note: in expansion of macro ‘Rf’
  155 |     Rf(i,1,n) ans+=lx[i]+ly[i];//顶标和即是答案
      |     ^~
正在同步测试数据,请稍后
# 状态 耗时 内存占用
#1 Accepted 3ms 324.0 KiB
#2 Accepted 3ms 536.0 KiB
#3 Accepted 3ms 536.0 KiB
#4 Accepted 2ms 536.0 KiB
#5 Accepted 2ms 320.0 KiB
#6 Accepted 3ms 536.0 KiB
#7 Accepted 3ms 324.0 KiB
#8 Accepted 2ms 536.0 KiB
#9 Accepted 2ms 536.0 KiB
#10 Accepted 3ms 536.0 KiB

信息

递交者
类型
递交
题目
P1169 丘比特的烦恼
语言
C++
递交时间
2024-07-05 11:27:51
评测时间
2024-07-05 11:27:51
评测机
分数
100
总耗时
29ms
峰值内存
536.0 KiB