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_17976254_14685.c: In function 'init':
0_0_17976254_14685.c:25:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
     for (int i = 0; i < n; i++) {
     ^
0_0_17976254_14685.c:25:5: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
0_0_17976254_14685.c: In function 'find':
0_0_17976254_14685.c:35:38: error: expected expression before '/' token
         return par[x] = find(par[x]);//Β·Ύ¶ΡΉΛυ
                                      ^
0_0_17976254_14685.c:35:38: error: stray '\302' in program
0_0_17976254_14685.c:35:38: error: stray '\267' in program
0_0_17976254_14685.c:35:38: error: stray '\276' in program
0_0_17976254_14685.c:35:38: error: stray '\266' in program
0_0_17976254_14685.c:35:38: error: stray '\321' in program
0_0_17976254_14685.c:35:38: error: stray '\271' in program
0_0_17976254_14685.c:35:38: error: stray '\313' in program
0_0_17976254_14685.c:35:38: error: stray '\365' in program
0_0_17976254_14685.c: At top level:
0_0_17976254_14685.c:56:1: error: unknown type name 'bool'
 bool same(int x, int y) {
 ^
0_0_17976254_14685.c: In function 'main':
0_0_17976254_14685.c:63:9: error: expected expression before '/' token
         //printf("M = %d, N = %d\n", M, N);
         ^
0_0_17976254_14685.c:71:9: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
         for(int m = 0; m < M; m++) {
         ^
0_0_17976254_14685.c:78:9: error: expected expression before '/' token
         //sort
         ^
0_0_17976254_14685.c:83:17: error: redefinition of 'm'
         for(int m = 0; m < M; m++) {
                 ^
0_0_17976254_14685.c:71:17: note: previous definition of 'm' was here
         for(int m = 0; m < M; m++) {
                 ^
0_0_17976254_14685.c:83:9: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
         for(int m = 0; m < M; m++) {
         ^


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 02:04:29, Gzip enabled