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_16038859_28568.c: In function 'main':
0_0_16038859_28568.c:12:13: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
             for(int i=2;i<=sqrt(a);i++) //若2到根号n之间所有整数去除,均无法整除,则n为素数
             ^
0_0_16038859_28568.c:12:13: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
0_0_16038859_28568.c:12:41: error: expected expression before '/' token
             for(int i=2;i<=sqrt(a);i++) //若2到根号n之间所有整数去除,均无法整除,则n为素数
                                         ^
0_0_16038859_28568.c:12:41: error: stray '\310' in program
0_0_16038859_28568.c:12:41: error: stray '\364' in program
0_0_16038859_28568.c:12:41: error: stray '\265' in program
0_0_16038859_28568.c:12:41: error: stray '\275' in program
0_0_16038859_28568.c:12:41: error: stray '\270' in program
0_0_16038859_28568.c:12:41: error: stray '\371' in program
0_0_16038859_28568.c:12:41: error: stray '\272' in program
0_0_16038859_28568.c:12:41: error: stray '\305' in program
0_0_16038859_28568.c:12:41: error: stray '\326' in program
0_0_16038859_28568.c:12:41: error: stray '\256' in program
0_0_16038859_28568.c:12:41: error: stray '\274' in program
0_0_16038859_28568.c:12:41: error: stray '\344' in program
0_0_16038859_28568.c:12:41: error: stray '\313' in program
0_0_16038859_28568.c:12:41: error: stray '\371' in program
0_0_16038859_28568.c:12:41: error: stray '\323' in program
0_0_16038859_28568.c:12:41: error: stray '\320' in program
0_0_16038859_28568.c:12:41: error: stray '\325' in program
0_0_16038859_28568.c:12:41: error: stray '\373' in program
0_0_16038859_28568.c:12:41: error: stray '\312' in program
0_0_16038859_28568.c:12:41: error: stray '\375' in program
0_0_16038859_28568.c:12:41: error: stray '\310' in program
0_0_16038859_28568.c:12:41: error: stray '\245' in program
0_0_16038859_28568.c:12:41: error: stray '\263' in program
0_0_16038859_28568.c:12:41: error: stray '\375' in program
0_0_16038859_28568.c:12:41: error: stray '\243' in program
0_0_16038859_28568.c:12:41: error: stray '\254' in program
0_0_16038859_28568.c:12:41: error: stray '\276' in program
0_0_16038859_28568.c:12:41: error: stray '\371' in program
0_0_16038859_28568.c:12:41: error: stray '\316' in program
0_0_16038859_28568.c:12:41: error: stray '\336' in program
0_0_16038859_28568.c:12:41: error: stray '\267' in program
0_0_16038859_28568.c:12:41: error: stray '\250' in program
0_0_16038859_28568.c:12:41: error: stray '\325' in program
0_0_16038859_28568.c:12:41: error: stray '\373' in program
0_0_16038859_28568.c:12:41: error: stray '\263' in program
0_0_16038859_28568.c:12:41: error: stray '\375' in program
0_0_16038859_28568.c:12:41: error: stray '\243' in program
0_0_16038859_28568.c:12:41: error: stray '\254' in program
0_0_16038859_28568.c:12:41: error: stray '\324' in program
0_0_16038859_28568.c:12:41: error: stray '\362' in program
0_0_16038859_28568.c:12:41: error: stray '\316' in program
0_0_16038859_28568.c:12:41: error: stray '\252' in program
0_0_16038859_28568.c:12:41: error: stray '\313' in program
0_0_16038859_28568.c:12:41: error: stray '\330' in program
0_0_16038859_28568.c:12:41: error: stray '\312' in program
0_0_16038859_28568.c:12:41: 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-11-16 23:36:42, Gzip enabled