/ Vijos /

记录详情

Compile Error

/in/foo.c:8:1: error: unknown type name 'using'
 using namespace std;
 ^~~~~
/in/foo.c:8:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'
 using namespace std;
                 ^~~
/in/foo.c:14:3: error: variably modified 'e' at file scope
 } e[Maxn];
   ^
/in/foo.c:16:30: error: variably modified 'h' at file scope
 int a[110][110], n, tot = 1, h[Maxn], S, T, dis[Maxn], vis[Maxn], pre[Maxn];
                              ^
/in/foo.c:16:45: error: variably modified 'dis' at file scope
 int a[110][110], n, tot = 1, h[Maxn], S, T, dis[Maxn], vis[Maxn], pre[Maxn];
                                             ^~~
/in/foo.c:16:56: error: variably modified 'vis' at file scope
 int a[110][110], n, tot = 1, h[Maxn], S, T, dis[Maxn], vis[Maxn], pre[Maxn];
                                                        ^~~
/in/foo.c:16:67: error: variably modified 'pre' at file scope
 int a[110][110], n, tot = 1, h[Maxn], S, T, dis[Maxn], vis[Maxn], pre[Maxn];
                                                                   ^~~
/in/foo.c: In function 'Add':
/in/foo.c:19:17: error: 'node' undeclared (first use in this function)
     e[++tot] = (node){v, h[u],  c, p}; h[u] = tot;
                 ^~~~
/in/foo.c:19:17: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:19:22: error: expected ';' before '{' token
     e[++tot] = (node){v, h[u],  c, p}; h[u] = tot;
                      ^
/in/foo.c:20:22: error: expected ';' before '{' token
     e[++tot] = (node){u, h[v], -c, 0}; h[v] = tot;
                      ^
/in/foo.c: At top level:
/in/foo.c:25:1: error: unknown type name 'bool'
 bool Bfs() {
 ^~~~
/in/foo.c: In function 'Bfs':
/in/foo.c:26:5: error: 'queue' undeclared (first use in this function)
     queue <int> Q;
     ^~~~~
/in/foo.c:26:12: error: expected expression before 'int'
     queue <int> Q;
            ^~~
/in/foo.c:30:17: error: 'Q' undeclared (first use in this function)
     dis[S] = 0; Q.push(S);
                 ^
/in/foo.c: In function 'Mcmf':
/in/foo.c:52:64: warning: implicit declaration of function 'min' [-Wimplicit-function-declaration]
         for(int i = pre[T + all]; i; i = pre[e[i ^ 1].to]) s = min(s, e[i].cap);
                                                                ^~~
/in/foo.c: In function 'main':
/in/foo.c:60:5: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
     scanf("%d", &n);
     ^~~~~
/in/foo.c:60:5: warning: incompatible implicit declaration of built-in function 'scanf'
/in/foo.c:60:5: note: include '<stdio.h>' or provide a declaration of 'scanf'
/in/foo.c:79:5: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
     printf("%d\n", Mcmf());
     ^~~~~~
/in/foo.c:79:5: warning: incompatible implicit declaration of built-in function 'printf'
/in/foo.c:79:5: note: include '<stdio.h>' or provide a declaration of 'printf'

信息

递交者
类型
递交
题目
P1143 三取方格数
语言
C
递交时间
2018-08-19 09:40:29
评测时间
2018-08-19 09:40:29
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes