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_23866902_1671.c:5:1: error: unknown type name 'using'
 using namespace std;
 ^
0_0_23866902_1671.c:5:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'
 using namespace std;
                 ^
0_0_23866902_1671.c:8:5: error: variably modified 'mat' at file scope
 int mat[maxn][maxn];
     ^
0_0_23866902_1671.c:8:5: error: variably modified 'mat' at file scope
0_0_23866902_1671.c:10:5: error: variably modified 'vis' at file scope
 int vis[maxn];
     ^
0_0_23866902_1671.c: In function 'dfs':
0_0_23866902_1671.c:14:2: error: expected expression before '/' token
  //printf("city = %d  count = %d cost = %d\n",city,count,cost);
  ^
0_0_23866902_1671.c:20:2: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
  for (int i = 1; i <= n; i++)
  ^
0_0_23866902_1671.c:20:2: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
0_0_23866902_1671.c: In function 'init':
0_0_23866902_1671.c:35:2: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
  for (int i = 0; i < maxn; i++)
  ^
0_0_23866902_1671.c:37:11: error: redefinition of 'i'
  for (int i = 0; i < maxn; i++)
           ^
0_0_23866902_1671.c:35:11: note: previous definition of 'i' was here
  for (int i = 0; i < maxn; i++)
           ^
0_0_23866902_1671.c:37:2: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
  for (int i = 0; i < maxn; i++)
  ^
0_0_23866902_1671.c:38:3: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
   for (int j = 0; j < maxn; j++)
   ^
0_0_23866902_1671.c: In function 'main':
0_0_23866902_1671.c:49:3: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
   for (int i = 0; i < m ; i++)
   ^
0_0_23866902_1671.c:62:12: error: redefinition of 'i'
   for (int i = 1; i <= n; i++)
            ^
0_0_23866902_1671.c:49:12: note: previous definition of 'i' was here
   for (int i = 0; i < m ; i++)
            ^
0_0_23866902_1671.c:62:3: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
   for (int i = 1; i <= n; i++)
   ^
0_0_23866902_1671.c: At top level:
0_0_23866902_1671.c:72:1: error: expected identifier or '(' before '/' token
 //clock_t end_time=clock();
 ^
0_0_23866902_1671.c:73:2: error: expected identifier or '(' before '/' token
  //cout<< "Running time is: "<<static_cast<double>(end_time-start_time)/CLOCKS_PER_SEC*1000<<"ms"<<endl;//输出运行时间
  ^
0_0_23866902_1671.c:73:105: error: expected identifier or '(' before '/' token
  //cout<< "Running time is: "<<static_cast<double>(end_time-start_time)/CLOCKS_PER_SEC*1000<<"ms"<<endl;//输出运行时间
                                                                                                         ^
0_0_23866902_1671.c:73:105: error: stray '\312' in program
0_0_23866902_1671.c:73:105: error: stray '\344' in program
0_0_23866902_1671.c:73:105: error: stray '\263' in program
0_0_23866902_1671.c:73:105: error: stray '\366' in program
0_0_23866902_1671.c:73:105: error: stray '\324' in program
0_0_23866902_1671.c:73:105: error: stray '\313' in program
0_0_23866902_1671.c:73:105: error: stray '\320' in program
0_0_23866902_1671.c:73:105: error: stray '\320' in program
0_0_23866902_1671.c:73:105: error: stray '\312' in program
0_0_23866902_1671.c:73:105: error: stray '\261' in program
0_0_23866902_1671.c:73:105: error: stray '\274' in program
0_0_23866902_1671.c:73:105: error: stray '\344' in program
0_0_23866902_1671.c:75:1: error: expected identifier or '(' before '}' token
 }
 ^


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 01:57:52, Gzip enabled