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_25022343_8909.c: In function 'sushu':
0_0_25022343_8909.c:6:2: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
  for(int i = 2; i * i <= x; i++){
  ^
0_0_25022343_8909.c:6:2: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
0_0_25022343_8909.c: In function 'main':
0_0_25022343_8909.c:14:2: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
  for(int i = 0; ; i++){
  ^
0_0_25022343_8909.c:17:18: error: expected expression before '/' token
    if(sushu(j))  //如果j是素数,则跳出循环 
                  ^
0_0_25022343_8909.c:17:18: error: stray '\310' in program
0_0_25022343_8909.c:17:18: error: stray '\347' in program
0_0_25022343_8909.c:17:18: error: stray '\271' in program
0_0_25022343_8909.c:17:18: error: stray '\373' in program
0_0_25022343_8909.c:17:18: error: stray '\312' in program
0_0_25022343_8909.c:17:18: error: stray '\307' in program
0_0_25022343_8909.c:17:18: error: stray '\313' in program
0_0_25022343_8909.c:17:18: error: stray '\330' in program
0_0_25022343_8909.c:17:18: error: stray '\312' in program
0_0_25022343_8909.c:17:18: error: stray '\375' in program
0_0_25022343_8909.c:17:18: error: stray '\243' in program
0_0_25022343_8909.c:17:18: error: stray '\254' in program
0_0_25022343_8909.c:17:18: error: stray '\324' in program
0_0_25022343_8909.c:17:18: error: stray '\362' in program
0_0_25022343_8909.c:17:18: error: stray '\314' in program
0_0_25022343_8909.c:17:18: error: stray '\370' in program
0_0_25022343_8909.c:17:18: error: stray '\263' in program
0_0_25022343_8909.c:17:18: error: stray '\366' in program
0_0_25022343_8909.c:17:18: error: stray '\321' in program
0_0_25022343_8909.c:17:18: error: stray '\255' in program
0_0_25022343_8909.c:17:18: error: stray '\273' in program
0_0_25022343_8909.c:17:18: error: stray '\267' in program
0_0_25022343_8909.c:20:27: error: expected expression before '/' token
   if(j == (i + 1) * 100){ //如果j等于(i + 1) * 100,说明全是合数 
                           ^
0_0_25022343_8909.c:20:27: error: stray '\310' in program
0_0_25022343_8909.c:20:27: error: stray '\347' in program
0_0_25022343_8909.c:20:27: error: stray '\271' in program
0_0_25022343_8909.c:20:27: error: stray '\373' in program
0_0_25022343_8909.c:20:27: error: stray '\265' in program
0_0_25022343_8909.c:20:27: error: stray '\310' in program
0_0_25022343_8909.c:20:27: error: stray '\323' in program
0_0_25022343_8909.c:20:27: error: stray '\332' in program
0_0_25022343_8909.c:20:27: error: stray '\313' in program
0_0_25022343_8909.c:20:27: error: stray '\265' in program
0_0_25022343_8909.c:20:27: error: stray '\303' in program
0_0_25022343_8909.c:20:27: error: stray '\367' in program
0_0_25022343_8909.c:20:27: error: stray '\310' in program
0_0_25022343_8909.c:20:27: error: stray '\253' in program
0_0_25022343_8909.c:20:27: error: stray '\312' in program
0_0_25022343_8909.c:20:27: error: stray '\307' in program
0_0_25022343_8909.c:20:27: error: stray '\272' in program
0_0_25022343_8909.c:20:27: error: stray '\317' in program
0_0_25022343_8909.c:20:27: error: stray '\312' in program
0_0_25022343_8909.c:20:27: error: stray '\375' 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-12-10 07:33:05, Gzip enabled