记录详情

Compile Error

/in/foo.cc:3:21: warning: suggest parentheses around '+' inside '<<' [-Wparentheses]
 #define MAXN 1<<(10)+1
                 ~~~~^~
/in/foo.cc:6:20: note: in expansion of macro 'MAXN'
 int a[150][15],dep[MAXN],visit[MAXN];
                    ^~~~
/in/foo.cc:3:21: warning: suggest parentheses around '+' inside '<<' [-Wparentheses]
 #define MAXN 1<<(10)+1
                 ~~~~^~
/in/foo.cc:6:32: note: in expansion of macro 'MAXN'
 int a[150][15],dep[MAXN],visit[MAXN];
                                ^~~~
/in/foo.cc: In function 'void spfa(int)':
/in/foo.cc:11:5: error: 'queue' was not declared in this scope
     queue<int>Q;
     ^~~~~
/in/foo.cc:11:11: error: expected primary-expression before 'int'
     queue<int>Q;
           ^~~
/in/foo.cc:12:5: error: 'Q' was not declared in this scope
     Q.push(src);
     ^

信息

递交者
类型
自测
题目
P1065 毒药?解药?
语言
C++
递交时间
2019-05-18 10:01:14
评测时间
2019-05-18 10:01:14
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes