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_19044452_13984.c:1:13: error: expected expression before '/' token
 #define N 8//没有分号
             ^
0_0_19044452_13984.c:4:11: note: in expansion of macro 'N'
 int table[N] = {};
           ^
0_0_19044452_13984.c:1:13: error: stray '\303' in program
 #define N 8//没有分号
             ^
0_0_19044452_13984.c:4:11: note: in expansion of macro 'N'
 int table[N] = {};
           ^
0_0_19044452_13984.c:1:13: error: stray '\273' in program
 #define N 8//没有分号
             ^
0_0_19044452_13984.c:4:11: note: in expansion of macro 'N'
 int table[N] = {};
           ^
0_0_19044452_13984.c:1:13: error: stray '\323' in program
 #define N 8//没有分号
             ^
0_0_19044452_13984.c:4:11: note: in expansion of macro 'N'
 int table[N] = {};
           ^
0_0_19044452_13984.c:1:13: error: stray '\320' in program
 #define N 8//没有分号
             ^
0_0_19044452_13984.c:4:11: note: in expansion of macro 'N'
 int table[N] = {};
           ^
0_0_19044452_13984.c:1:13: error: stray '\267' in program
 #define N 8//没有分号
             ^
0_0_19044452_13984.c:4:11: note: in expansion of macro 'N'
 int table[N] = {};
           ^
0_0_19044452_13984.c:1:13: error: stray '\326' in program
 #define N 8//没有分号
             ^
0_0_19044452_13984.c:4:11: note: in expansion of macro 'N'
 int table[N] = {};
           ^
0_0_19044452_13984.c:1:13: error: stray '\272' in program
 #define N 8//没有分号
             ^
0_0_19044452_13984.c:4:11: note: in expansion of macro 'N'
 int table[N] = {};
           ^
0_0_19044452_13984.c:1:13: error: stray '\305' in program
 #define N 8//没有分号
             ^
0_0_19044452_13984.c:4:11: note: in expansion of macro 'N'
 int table[N] = {};
           ^
0_0_19044452_13984.c:1:13: error: expected expression before '/' token
 #define N 8//没有分号
             ^
0_0_19044452_13984.c:5:7: note: in expansion of macro 'N'
 int f[N] = {};
       ^
0_0_19044452_13984.c:1:13: error: stray '\303' in program
 #define N 8//没有分号
             ^
0_0_19044452_13984.c:5:7: note: in expansion of macro 'N'
 int f[N] = {};
       ^
0_0_19044452_13984.c:1:13: error: stray '\273' in program
 #define N 8//没有分号
             ^
0_0_19044452_13984.c:5:7: note: in expansion of macro 'N'
 int f[N] = {};
       ^
0_0_19044452_13984.c:1:13: error: stray '\323' in program
 #define N 8//没有分号
             ^
0_0_19044452_13984.c:5:7: note: in expansion of macro 'N'
 int f[N] = {};
       ^
0_0_19044452_13984.c:1:13: error: stray '\320' in program
 #define N 8//没有分号
             ^
0_0_19044452_13984.c:5:7: note: in expansion of macro 'N'
 int f[N] = {};
       ^
0_0_19044452_13984.c:1:13: error: stray '\267' in program
 #define N 8//没有分号
             ^
0_0_19044452_13984.c:5:7: note: in expansion of macro 'N'
 int f[N] = {};
       ^
0_0_19044452_13984.c:1:13: error: stray '\326' in program
 #define N 8//没有分号
             ^
0_0_19044452_13984.c:5:7: note: in expansion of macro 'N'
 int f[N] = {};
       ^
0_0_19044452_13984.c:1:13: error: stray '\272' in program
 #define N 8//没有分号
             ^
0_0_19044452_13984.c:5:7: note: in expansion of macro 'N'
 int f[N] = {};
       ^
0_0_19044452_13984.c:1:13: error: stray '\305' in program
 #define N 8//没有分号
             ^
0_0_19044452_13984.c:5:7: note: in expansion of macro 'N'
 int f[N] = {};
       ^
0_0_19044452_13984.c: In function 'F':
0_0_19044452_13984.c:9:2: error: 'table' undeclared (first use in this function)
  table[0] = 7;
  ^
0_0_19044452_13984.c:9:2: note: each undeclared identifier is reported only once for each function it appears in
0_0_19044452_13984.c:11:2: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
  for (int i = 2; i <= n; i++)
  ^
0_0_19044452_13984.c:11:2: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
0_0_19044452_13984.c: In function 'main':
0_0_19044452_13984.c:21:2: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
  for (int i = 0; i < N; f[i++] = (table[i] % 3));
  ^
0_0_19044452_13984.c:1:13: error: expected expression before '/' token
 #define N 8//没有分号
             ^
0_0_19044452_13984.c:21:22: note: in expansion of macro 'N'
  for (int i = 0; i < N; f[i++] = (table[i] % 3));
                      ^
0_0_19044452_13984.c:1:13: error: stray '\303' in program
 #define N 8//没有分号
             ^
0_0_19044452_13984.c:21:22: note: in expansion of macro 'N'
  for (int i = 0; i < N; f[i++] = (table[i] % 3));
                      ^
0_0_19044452_13984.c:1:13: error: stray '\273' in program
 #define N 8//没有分号
             ^
0_0_19044452_13984.c:21:22: note: in expansion of macro 'N'
  for (int i = 0; i < N; f[i++] = (table[i] % 3));
                      ^
0_0_19044452_13984.c:1:13: error: stray '\323' in program
 #define N 8//没有分号
             ^
0_0_19044452_13984.c:21:22: note: in expansion of macro 'N'
  for (int i = 0; i < N; f[i++] = (table[i] % 3));
                      ^
0_0_19044452_13984.c:1:13: error: stray '\320' in program
 #define N 8//没有分号
             ^
0_0_19044452_13984.c:21:22: note: in expansion of macro 'N'
  for (int i = 0; i < N; f[i++] = (table[i] % 3));
                      ^
0_0_19044452_13984.c:1:13: error: stray '\267' in program
 #define N 8//没有分号
             ^
0_0_19044452_13984.c:21:22: note: in expansion of macro 'N'
  for (int i = 0; i < N; f[i++] = (table[i] % 3));
                      ^
0_0_19044452_13984.c:1:13: error: stray '\326' in program
 #define N 8//没有分号
             ^
0_0_19044452_13984.c:21:22: note: in expansion of macro 'N'
  for (int i = 0; i < N; f[i++] = (table[i] % 3));
                      ^
0_0_19044452_13984.c:1:13: error: stray '\272' in program
 #define N 8//没有分号
             ^
0_0_19044452_13984.c:21:22: note: in expansion of macro 'N'
  for (int i = 0; i < N; f[i++] = (table[i] % 3));
                      ^
0_0_19044452_13984.c:1:13: error: stray '\305' in program
 #define N 8//没有分号
             ^
0_0_19044452_13984.c:21:22: note: in expansion of macro 'N'
  for (int i = 0; i < N; f[i++] = (table[i] % 3));
                      ^
0_0_19044452_13984.c:21:25: error: 'f' undeclared (first use in this function)
  for (int i = 0; i < N; f[i++] = (table[i] % 3));
                         ^
0_0_19044452_13984.c:21:35: error: 'table' undeclared (first use in this function)
  for (int i = 0; i < N; f[i++] = (table[i] % 3));
                                   ^
0_0_19044452_13984.c:24:44: error: expected expression before '/' token
   printf(f[n % 8] == 0 ? "yes\n" : "no\n");//周期为8
                                            ^
0_0_19044452_13984.c:24:44: error: stray '\326' in program
0_0_19044452_13984.c:24:44: error: stray '\334' in program
0_0_19044452_13984.c:24:44: error: stray '\306' in program
0_0_19044452_13984.c:24:44: error: stray '\332' in program
0_0_19044452_13984.c:24:44: error: stray '\316' in program
0_0_19044452_13984.c:24:44: error: stray '\252' in program


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-17 13:55:01, Gzip enabled