F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_16234331_3753.c:1:1: error: expected identifier or '(' before '/' token
 //By--wintermelon
 ^
0_0_16234331_3753.c:2:3: error: stray '#' in program
 //#pragma comment(linker, "/STACK:102400000,102400000")
   ^
0_0_16234331_3753.c:3:4: error: stray '#' in program
 // #include <bits/stdc++.h>
    ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/_mingw.h:282:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/crtdefs.h:10,
                 from GCC4.9.2/x86_64-w64-mingw32/include/stdio.h:9,
                 from 0_0_16234331_3753.c:4:
GCC4.9.2/x86_64-w64-mingw32/include/vadefs.h:29:11: error: unknown type name '__gnuc_va_list'
   typedef __gnuc_va_list va_list;
           ^
0_0_16234331_3753.c:9:24: error: expected identifier or '(' before '/' token
 const int MAXN = 55003;//点数的最大值
                        ^
0_0_16234331_3753.c:9:24: error: stray '\265' in program
0_0_16234331_3753.c:9:24: error: stray '\343' in program
0_0_16234331_3753.c:9:24: error: stray '\312' in program
0_0_16234331_3753.c:9:24: error: stray '\375' in program
0_0_16234331_3753.c:9:24: error: stray '\265' in program
0_0_16234331_3753.c:9:24: error: stray '\304' in program
0_0_16234331_3753.c:9:24: error: stray '\327' in program
0_0_16234331_3753.c:9:24: error: stray '\356' in program
0_0_16234331_3753.c:9:24: error: stray '\264' in program
0_0_16234331_3753.c:9:24: error: stray '\363' in program
0_0_16234331_3753.c:9:24: error: stray '\326' in program
0_0_16234331_3753.c:9:24: error: stray '\265' in program
0_0_16234331_3753.c:10:25: error: expected identifier or '(' before '/' token
 const int MAXM = 310000;//边数的最大值
                         ^
0_0_16234331_3753.c:10:25: error: stray '\261' in program
0_0_16234331_3753.c:10:25: error: stray '\337' in program
0_0_16234331_3753.c:10:25: error: stray '\312' in program
0_0_16234331_3753.c:10:25: error: stray '\375' in program
0_0_16234331_3753.c:10:25: error: stray '\265' in program
0_0_16234331_3753.c:10:25: error: stray '\304' in program
0_0_16234331_3753.c:10:25: error: stray '\327' in program
0_0_16234331_3753.c:10:25: error: stray '\356' in program
0_0_16234331_3753.c:10:25: error: stray '\264' in program
0_0_16234331_3753.c:10:25: error: stray '\363' in program
0_0_16234331_3753.c:10:25: error: stray '\326' in program
0_0_16234331_3753.c:10:25: error: stray '\265' in program
0_0_16234331_3753.c:16:8: error: 'MAXM' undeclared here (not in a function)
 } edge[MAXM]; //注意是MAXM
        ^
0_0_16234331_3753.c:16:15: error: expected identifier or '(' before '/' token
 } edge[MAXM]; //注意是MAXM
               ^
0_0_16234331_3753.c:16:15: error: stray '\327' in program
0_0_16234331_3753.c:16:15: error: stray '\242' in program
0_0_16234331_3753.c:16:15: error: stray '\322' in program
0_0_16234331_3753.c:16:15: error: stray '\342' in program
0_0_16234331_3753.c:16:15: error: stray '\312' in program
0_0_16234331_3753.c:16:15: error: stray '\307' in program
0_0_16234331_3753.c:18:5: error: variably modified 'head' at file scope
 int head[MAXN];
     ^
0_0_16234331_3753.c:19:5: error: variably modified 'gap' at file scope
 int gap[MAXN], dep[MAXN], cur[MAXN];
     ^
0_0_16234331_3753.c:19:16: error: variably modified 'dep' at file scope
 int gap[MAXN], dep[MAXN], cur[MAXN];
                ^
0_0_16234331_3753.c:19:27: error: variably modified 'cur' at file scope
 int gap[MAXN], dep[MAXN], cur[MAXN];
                           ^
0_0_16234331_3753.c: In function 'init':
0_0_16234331_3753.c:22:2: error: 'tol' undeclared (first use in this function)
  tol = 0;
  ^
0_0_16234331_3753.c:22:2: note: each undeclared identifier is reported only once for each function it appears in
0_0_16234331_3753.c: At top level:
0_0_16234331_3753.c:25:42: error: expected ';', ',' or ')' before '=' token
 void addedge(int u, int v, int w, int rw = 0)
                                          ^
0_0_16234331_3753.c:32:5: error: variably modified 'Q' at file scope
 int Q[MAXN];
     ^
0_0_16234331_3753.c: In function 'BFS':
0_0_16234331_3753.c:44:3: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
   for (int i = head[u]; i != -1; i = edge[i].next)
   ^
0_0_16234331_3753.c:44:3: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
0_0_16234331_3753.c: At top level:
0_0_16234331_3753.c:54:5: error: variably modified 'S' at file scope
 int S[MAXN];
     ^
0_0_16234331_3753.c: In function 'sap':
0_0_16234331_3753.c:66:14: error: 'INF' undeclared (first use in this function)
    int Min = INF;
              ^
0_0_16234331_3753.c:68:4: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
    for (int i = 0; i < top; i++)
    ^
0_0_16234331_3753.c:74:13: error: redefinition of 'i'
    for (int i = 0; i < top; i++)
             ^
0_0_16234331_3753.c:68:13: note: previous definition of 'i' was here
    for (int i = 0; i < top; i++)
             ^
0_0_16234331_3753.c:74:4: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
    for (int i = 0; i < top; i++)
    ^
0_0_16234331_3753.c:84:3: error: unknown type name 'bool'
   bool flag = false;
   ^
0_0_16234331_3753.c:84:15: error: 'false' undeclared (first use in this function)
   bool flag = false;
               ^
0_0_16234331_3753.c:86:3: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
   for (int i = cur[u]; i != -1; i = edge[i].next)
   ^
0_0_16234331_3753.c:91:12: error: 'true' undeclared (first use in this function)
     flag = true;
            ^
0_0_16234331_3753.c:103:12: error: redefinition of 'i'
   for (int i = head[u]; i != -1; i = edge[i].next)
            ^
0_0_16234331_3753.c:86:12: note: previous definition of 'i' was here
   for (int i = cur[u]; i != -1; i = edge[i].next)
            ^
0_0_16234331_3753.c:103:3: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
   for (int i = head[u]; i != -1; i = edge[i].next)
   ^
0_0_16234331_3753.c: In function 'main':
0_0_16234331_3753.c:127:3: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
   for (int i = m + 2; i <= m + n + 1; i++)
   ^
0_0_16234331_3753.c:133:12: error: redefinition of 'i'
   for (int i = 2; i <= m + 1; i++)
            ^
0_0_16234331_3753.c:127:12: note: previous definition of 'i' was here
   for (int i = m + 2; i <= m + n + 1; i++)
            ^
0_0_16234331_3753.c:133:3: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
   for (int i = 2; i <= m + 1; i++)
   ^
0_0_16234331_3753.c:138:26: error: 'INF' undeclared (first use in this function)
    addedge(i, m + a + 1, INF);
                          ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-09-29 08:44:25, Gzip enabled