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_24905618_20373.c:1:1: error: expected identifier or '(' before '/' token
 //#include <iostream>
 ^
0_0_24905618_20373.c:1:3: error: stray '#' in program
 //#include <iostream>
   ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/_mingw.h:282:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/crtdefs.h:10,
                 from GCC4.9.2/x86_64-w64-mingw32/include/stdio.h:9,
                 from 0_0_24905618_20373.c:2:
GCC4.9.2/x86_64-w64-mingw32/include/vadefs.h:29:11: error: unknown type name '__gnuc_va_list'
   typedef __gnuc_va_list va_list;
           ^
0_0_24905618_20373.c:3:1: error: expected identifier or '(' before '/' token
 //#include <bits/stdc++.h>
 ^
0_0_24905618_20373.c:3:3: error: stray '#' in program
 //#include <bits/stdc++.h>
   ^
0_0_24905618_20373.c:9:1: error: expected identifier or '(' before '/' token
 //using namespace std;
 ^
0_0_24905618_20373.c: In function 'main':
0_0_24905618_20373.c:37:13: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
             for(int i = 1;i<=p;i++)
             ^
0_0_24905618_20373.c:37:13: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
0_0_24905618_20373.c:39:21: error: redefinition of 'i'
             for(int i=p+1;i<=10;i++)
                     ^
0_0_24905618_20373.c:37:21: note: previous definition of 'i' was here
             for(int i = 1;i<=p;i++)
                     ^
0_0_24905618_20373.c:39:13: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
             for(int i=p+1;i<=10;i++)
             ^
0_0_24905618_20373.c:44:13: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
             for(int i = 1;i<=4;i++)
             ^
0_0_24905618_20373.c:49:17: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
                 for(int i = 1;i<=3;i++)
                 ^
0_0_24905618_20373.c:55:17: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
                 for(int i=5+strlen(stat);i<=10;i++)
                 ^


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-30 06:06:30, Gzip enabled