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_16022388_7158.c:3:1: error: expected identifier or '(' before '&' token
  
 ^
0_0_16022388_7158.c:5:14: error: variably modified 'next' at file scope
 int n, m, k, next[N], x[N], y[N];
              ^
0_0_16022388_7158.c:5:23: error: variably modified 'x' at file scope
 int n, m, k, next[N], x[N], y[N];
                       ^
0_0_16022388_7158.c:5:29: error: variably modified 'y' at file scope
 int n, m, k, next[N], x[N], y[N];
                             ^
0_0_16022388_7158.c:6:5: error: variably modified 'cx' at file scope
 int cx[N][30], cy[N][30];
     ^
0_0_16022388_7158.c:6:16: error: variably modified 'cy' at file scope
 int cx[N][30], cy[N][30];
                ^
0_0_16022388_7158.c:7:1: error: expected identifier or '(' before '&' token
  
 ^
0_0_16022388_7158.c: In function 'init':
0_0_16022388_7158.c:9:2: error: 'nbsp' undeclared (first use in this function)
     int a;
  ^
0_0_16022388_7158.c:9:2: note: each undeclared identifier is reported only once for each function it appears in
0_0_16022388_7158.c:14:25: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
     for (int i = 1; i <= n; i++) {
                         ^
0_0_16022388_7158.c:14:25: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
0_0_16022388_7158.c:20:34: error: redefinition of 'i'
     for (int i = 1; i <= m; i++) {
                                  ^
0_0_16022388_7158.c:14:34: note: previous definition of 'i' was here
     for (int i = 1; i <= n; i++) {
                                  ^
0_0_16022388_7158.c:20:25: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
     for (int i = 1; i <= m; i++) {
                         ^
0_0_16022388_7158.c: At top level:
0_0_16022388_7158.c:26:1: error: expected identifier or '(' before '&' token
  
 ^
0_0_16022388_7158.c:27:1: error: unknown type name 'bool'
 bool judge (int p, int q, int (*a)[30], int (*b)[30], int tp, int tq) {
 ^
0_0_16022388_7158.c: In function 'judge':
0_0_16022388_7158.c:28:2: error: 'nbsp' undeclared (first use in this function)
     int s = 0;
  ^
0_0_16022388_7158.c:29:25: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
     for (int i = 1; i < tp; i++)
                         ^
0_0_16022388_7158.c:31:34: error: redefinition of 'i'
     for (int i = 1; i < tq; i++)
                                  ^
0_0_16022388_7158.c:29:34: note: previous definition of 'i' was here
     for (int i = 1; i < tp; i++)
                                  ^
0_0_16022388_7158.c:31:25: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
     for (int i = 1; i < tq; i++)
                         ^
0_0_16022388_7158.c: At top level:
0_0_16022388_7158.c:35:1: error: expected identifier or '(' before '&' token
  
 ^
0_0_16022388_7158.c: In function 'getNext':
0_0_16022388_7158.c:37:2: error: 'nbsp' undeclared (first use in this function)
     int j = 0;
  ^
0_0_16022388_7158.c:38:25: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
     for (int i = 2; i <= m; i++) {
                         ^
0_0_16022388_7158.c: At top level:
0_0_16022388_7158.c:47:1: error: expected identifier or '(' before '&' token
  
 ^
0_0_16022388_7158.c: In function 'KMP':
0_0_16022388_7158.c:49:2: error: 'nbsp' undeclared (first use in this function)
     int ans = 0;
  ^
0_0_16022388_7158.c:53:25: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
     for (int i = 1; i <= n; i++) {
                         ^
0_0_16022388_7158.c: At top level:
0_0_16022388_7158.c:67:1: error: expected identifier or '(' before '&' token
  
 ^
0_0_16022388_7158.c: In function 'main':
0_0_16022388_7158.c:69:2: error: 'nbsp' undeclared (first use in this function)
     while (scanf("%d%d%d", &n, &m, &k) == 3) {
  ^


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-11-16 11:11:27, Gzip enabled