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_33820218_3532.cpp: In function 'void dfs(int)':
0_0_33820218_3532.cpp:33:7: error: 'a' was not declared in this scope
   if (a[v] > mx) mx = a[v], mxid = v;
       ^
0_0_33820218_3532.cpp:34:7: error: 'a' was not declared in this scope
   if (a[v] < mn) mn = a[v], mnid = v;
       ^
0_0_33820218_3532.cpp: In function 'int main()':
0_0_33820218_3532.cpp:49:42: error: 'a' was not declared in this scope
   for (register int i = 1; i <= n; i+=1) a[i] = gi <long long> ();
                                          ^
0_0_33820218_3532.cpp:51:7: error: 'a' was not declared in this scope
   if (a[1] > 0) sum1 += a[1], vis1[1] = true;
       ^
0_0_33820218_3532.cpp:56:20: error: 'a' was not declared in this scope
    if (!vis1[i] && a[i] > mx1) mx1 = a[i];
                    ^
0_0_33820218_3532.cpp:57:20: error: 'a' was not declared in this scope
    if (!vis2[i] && a[i] < mn1) mn1 = a[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-26 11:56:56, Gzip enabled