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_29552436_3856.c:2:1: error: unknown type name 'using'
 using namespace std;
 ^
0_0_29552436_3856.c:2:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'
 using namespace std;
                 ^
0_0_29552436_3856.c: In function 'every_f':
0_0_29552436_3856.c:7:2: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
  for(int every_f_i=2;every_f_i<=every_f_au;every_f_i++){
  ^
0_0_29552436_3856.c:7:2: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
0_0_29552436_3856.c: In function 'main':
0_0_29552436_3856.c:20:2: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
  for(int number_i=1;number_i<=number;number_i++){
  ^
0_0_29552436_3856.c:25:3: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
   for(int every_i=1;every_i<=every_n;every_i++){
   ^
0_0_29552436_3856.c:28:11: error: redefinition of 'every_i'
   for(int every_i=1;every_i<=every_n;every_i++){
           ^
0_0_29552436_3856.c:25:11: note: previous definition of 'every_i' was here
   for(int every_i=1;every_i<=every_n;every_i++){
           ^
0_0_29552436_3856.c:28:3: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
   for(int every_i=1;every_i<=every_n;every_i++){
   ^
0_0_29552436_3856.c:34:3: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
   for(int every_j=every_n;every_j>0;every_j--){
   ^
0_0_29552436_3856.c:38:13: error: 'new' undeclared (first use in this function)
    int*find=new int[2]{every_au,every_ao};
             ^
0_0_29552436_3856.c:38:13: note: each undeclared identifier is reported only once for each function it appears in
0_0_29552436_3856.c:38:17: error: expected ',' or ';' before 'int'
    int*find=new int[2]{every_au,every_ao};
                 ^
0_0_29552436_3856.c:42:4: error: 'delete' undeclared (first use in this function)
    delete []find;
    ^
0_0_29552436_3856.c:42:12: error: expected expression before ']' token
    delete []find;
            ^


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-03 06:33:58, Gzip enabled