/ Vijos /

记录详情

Compile Error

foo.cpp: In function 'int main()':
foo.cpp:9:30: warning: suggest parentheses around '+' inside '<<' [-Wparentheses]
 #define ROW(i,j) (row[(i)<<10+(j)])
                              ^
foo.cpp:31:4: note: in expansion of macro 'ROW'
    ROW(i, j) = ROW(i, j - 1) + (MAPROW(i, j) == ' ');
    ^
foo.cpp:9:30: warning: suggest parentheses around '+' inside '<<' [-Wparentheses]
 #define ROW(i,j) (row[(i)<<10+(j)])
                              ^
foo.cpp:31:16: note: in expansion of macro 'ROW'
    ROW(i, j) = ROW(i, j - 1) + (MAPROW(i, j) == ' ');
                ^
foo.cpp:10:30: warning: suggest parentheses around '+' inside '<<' [-Wparentheses]
 #define COL(i,j) (col[(i)<<10+(j)])
                              ^
foo.cpp:35:4: note: in expansion of macro 'COL'
    COL(i, j) = COL(i - 1, j) + (MAPCOL(i, j) == ' ');
    ^
foo.cpp:10:30: warning: suggest parentheses around '+' inside '<<' [-Wparentheses]
 #define COL(i,j) (col[(i)<<10+(j)])
                              ^
foo.cpp:35:16: note: in expansion of macro 'COL'
    COL(i, j) = COL(i - 1, j) + (MAPCOL(i, j) == ' ');
                ^
foo.cpp:10:30: warning: suggest parentheses around '+' inside '<<' [-Wparentheses]
 #define COL(i,j) (col[(i)<<10+(j)])
                              ^
foo.cpp:12:22: note: in expansion of macro 'COL'
 #define COLS(j,s,t) (COL(i,t)-COL(i,s))
                      ^
foo.cpp:52:16: note: in expansion of macro 'COLS'
     found |= (!COLS(s, l, i) && !COLS(t, l, i) && !ROWS(l, s, t));
                ^
foo.cpp:10:30: warning: suggest parentheses around '+' inside '<<' [-Wparentheses]
 #define COL(i,j) (col[(i)<<10+(j)])
                              ^
foo.cpp:12:31: note: in expansion of macro 'COL'
 #define COLS(j,s,t) (COL(i,t)-COL(i,s))
                               ^
foo.cpp:52:16: note: in expansion of macro 'COLS'
     found |= (!COLS(s, l, i) && !COLS(t, l, i) && !ROWS(l, s, t));
                ^
foo.cpp:10:30: warning: suggest parentheses around '+' inside '<<' [-Wparentheses]
 #define COL(i,j) (col[(i)<<10+(j)])
                              ^
foo.cpp:12:22: note: in expansion of macro 'COL'
 #define COLS(j,s,t) (COL(i,t)-COL(i,s))
                      ^
foo.cpp:52:34: note: in expansion of macro 'COLS'
     found |= (!COLS(s, l, i) && !COLS(t, l, i) && !ROWS(l, s, t));
                                  ^
foo.cpp:10:30: warning: suggest parentheses around '+' inside '<<' [-Wparentheses]
 #define COL(i,j) (col[(i)<<10+(j)])
                              ^
foo.cpp:12:31: note: in expansion of macro 'COL'
 #define COLS(j,s,t) (COL(i,t)-COL(i,s))
                               ^
foo.cpp:52:34: note: in expansion of macro 'COLS'
     found |= (!COLS(s, l, i) && !COLS(t, l, i) && !ROWS(l, s, t));
                                  ^
foo.cpp:9:30: warning: suggest parentheses around '+' inside '<<' [-Wparentheses]
 #define ROW(i,j) (row[(i)<<10+(j)])
                              ^
foo.cpp:11:22: note: in expansion of macro 'ROW'
 #define ROWS(i,s,t) (ROW(i,t)-ROW(i,s))
                      ^
foo.cpp:52:52: note: in expansion of macro 'ROWS'
     found |= (!COLS(s, l, i) && !COLS(t, l, i) && !ROWS(l, s, t));
                                                    ^
foo.cpp:9:30: warning: suggest parentheses around '+' inside '<<' [-Wparentheses]
 #define ROW(i,j) (row[(i)<<10+(j)])
                              ^
foo.cpp:11:31: note: in expansion of macro 'ROW'
 #define ROWS(i,s,t) (ROW(i,t)-ROW(i,s))
                               ^
foo.cpp:52:52: note: in expansion of macro 'ROWS'
     found |= (!COLS(s, l, i) && !COLS(t, l, i) && !ROWS(l, s, t));
                                                    ^
foo.cpp:10:30: warning: suggest parentheses around '+' inside '<<' [-Wparentheses]
 #define COL(i,j) (col[(i)<<10+(j)])
                              ^
foo.cpp:12:22: note: in expansion of macro 'COL'
 #define COLS(j,s,t) (COL(i,t)-COL(i,s))
                      ^
foo.cpp:61:16: note: in expansion of macro 'COLS'
     found |= (!COLS(s, i, r) && !COLS(t, i, r

信息

递交者
类型
递交
题目
P1618 正方形内的计数
语言
C++
递交时间
2015-08-15 22:52:58
评测时间
2015-08-15 22:53:23
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes