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_32682942_16561.cpp: In function 'int main()':
0_0_32682942_16561.cpp:15:16: error: missing template arguments before '(' token
         mp[pair(a[1], a[2])] = min(1, abs(a[1] - a[2]));
                ^
0_0_32682942_16561.cpp:16:16: error: missing template arguments before '(' token
         mp[pair(a[3], a[4])] = min(1, abs(a[3] - a[4]));
                ^
0_0_32682942_16561.cpp:17:16: error: missing template arguments before '(' token
         mp[pair(a[5], a[6])] = min(1, abs(a[5] - a[6]));
                ^
0_0_32682942_16561.cpp:18:16: error: missing template arguments before '(' token
         mp[pair(a[2], a[1])] = min(1, abs(a[1] - a[2]));
                ^
0_0_32682942_16561.cpp:19:16: error: missing template arguments before '(' token
         mp[pair(a[4], a[3])] = min(1, abs(a[3] - a[4]));
                ^
0_0_32682942_16561.cpp:20:16: error: missing template arguments before '(' token
         mp[pair(a[6], a[5])] = min(1, abs(a[5] - a[6]));
                ^
0_0_32682942_16561.cpp:23:35: error: missing template arguments before '(' token
                 if (!mp.count(pair(a[i], a[j]))) {
                                   ^
0_0_32682942_16561.cpp:24:28: error: missing template arguments before '(' token
                     mp[pair(a[i], a[j])] = mp[pair(a[j], a[i])] = abs(a[i] - a[j]);
                            ^
0_0_32682942_16561.cpp:24:51: error: missing template arguments before '(' token
                     mp[pair(a[i], a[j])] = mp[pair(a[j], a[i])] = abs(a[i] - a[j]);
                                                   ^
0_0_32682942_16561.cpp:32:28: error: missing template arguments before '(' token
                     mp[pair(a[i], a[j])] = mp[pair(a[j], a[i])] = min(mp[pair(a[i], a[j])],
                            ^
0_0_32682942_16561.cpp:32:51: error: missing template arguments before '(' token
                     mp[pair(a[i], a[j])] = mp[pair(a[j], a[i])] = min(mp[pair(a[i], a[j])],
                                                   ^
0_0_32682942_16561.cpp:32:78: error: missing template arguments before '(' token
                     mp[pair(a[i], a[j])] = mp[pair(a[j], a[i])] = min(mp[pair(a[i], a[j])],
                                                                              ^
0_0_32682942_16561.cpp:33:78: error: missing template arguments before '(' token
                                                                       mp[pair(a[i], a[k])] + mp[pair(a[k], a[j])]);
                                                                              ^
0_0_32682942_16561.cpp:33:101: error: missing template arguments before '(' token
                                                                       mp[pair(a[i], a[k])] + mp[pair(a[k], a[j])]);
                                                                                                     ^
0_0_32682942_16561.cpp:44:52: error: missing template arguments before '(' token
                     ans=min(ans,abs(s-a[i])+mp[pair(a[i],a[j])]+abs(a[j]-t));
                                                    ^


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-22 15:53:08, Gzip enabled