记录详情

Compile Error

/in/foo.c:4:1: error: unknown type name 'using'
 using namespace std;
 ^~~~~
/in/foo.c:4:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'
 using namespace std;
                 ^~~
/in/foo.c:3:15: warning: suggest parentheses around '+' inside '<<' [-Wparentheses]
 #define MAXN 1<<(10)+1
               ^
/in/foo.c:6:20: note: in expansion of macro 'MAXN'
 int a[150][15],dep[MAXN],visit[MAXN];
                    ^~~~
/in/foo.c:3:15: warning: suggest parentheses around '+' inside '<<' [-Wparentheses]
 #define MAXN 1<<(10)+1
               ^
/in/foo.c:6:32: note: in expansion of macro 'MAXN'
 int a[150][15],dep[MAXN],visit[MAXN];
                                ^~~~
/in/foo.c: In function 'spfa':
/in/foo.c:11:5: error: 'queue' undeclared (first use in this function)
     queue<int>Q;
     ^~~~~
/in/foo.c:11:5: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:11:11: error: expected expression before 'int'
     queue<int>Q;
           ^~~
/in/foo.c:12:5: error: 'Q' undeclared (first use in this function)
     Q.push(src);
     ^

信息

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