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_32248340_27993.cpp:8:7: error: 'max' was not declared in this scope
 int a[max][maxn];
       ^
0_0_32248340_27993.cpp:8:7: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_tree.h:61:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:60,
                 from 0_0_32248340_27993.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:261:5: note:   'std::max'
     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
     ^
0_0_32248340_27993.cpp: In function 'int main()':
0_0_32248340_27993.cpp:17:46: error: expected primary-expression before ')' token
     while (scanf("%d%d%d", &n, &c, &r)!=EOF&&)
                                              ^
0_0_32248340_27993.cpp:23:13: error: 'a' was not declared in this scope
             a[i][j] = INF;
             ^
0_0_32248340_27993.cpp:24:38: error: 'a' was not declared in this scope
         for (int i = 1; i <= n; i++) a[i][i] = 0;
                                      ^
0_0_32248340_27993.cpp:61:37: error: 'a' was not declared in this scope
             if (sd[0] == '<' && s < a[e][b]) a[e][b] = s;
                                     ^
0_0_32248340_27993.cpp:62:39: error: 'a' was not declared in this scope
             if (sd[l-1] == '>' && s < a[b][e]) a[b][e] = s;
                                       ^
0_0_32248340_27993.cpp:67:21: error: 'a' was not declared in this scope
                 if (a[i][k] != INF && a[k][j] != INF && a[i][k] + a[k][j] < a[i][j])
                     ^
0_0_32248340_27993.cpp:71:20: error: 'a' was not declared in this scope
             ans += a[name[sv]][name[st[i]]]+a[name[st[i]]][name[sv]]; 
                    ^


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 14:35:48, Gzip enabled