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_37036497_12021.cpp:3:7: error: 'll' does not name a type
 const ll MOD =  12 * 60 * 360;
       ^
0_0_37036497_12021.cpp: In function 'int main()':
0_0_37036497_12021.cpp:13:5: error: 'll' was not declared in this scope
     ll tmp = h * 360 * 60 + m * 360 + s * 6;
     ^
0_0_37036497_12021.cpp:18:9: error: 'a' was not declared in this scope
         a[i].shun = ((h * 60 + m) * 360 + s * 6 + MOD - tmp) % MOD;
         ^
0_0_37036497_12021.cpp:18:51: error: 'MOD' was not declared in this scope
         a[i].shun = ((h * 60 + m) * 360 + s * 6 + MOD - tmp) % MOD;
                                                   ^
0_0_37036497_12021.cpp:18:57: error: 'tmp' was not declared in this scope
         a[i].shun = ((h * 60 + m) * 360 + s * 6 + MOD - tmp) % MOD;
                                                         ^
0_0_37036497_12021.cpp:21:10: error: 'a' was not declared in this scope
     sort(a + 1, a + n + 1, cmp);
          ^
0_0_37036497_12021.cpp:21:28: error: 'cmp' was not declared in this scope
     sort(a + 1, a + n + 1, cmp);
                            ^
0_0_37036497_12021.cpp:23:8: error: expected ';' before 'ans'
     ll ans = MOD;
        ^
0_0_37036497_12021.cpp:24:8: error: expected ';' before 'res1'
     ll res1 = MOD - a[1].shun;
        ^
0_0_37036497_12021.cpp:25:8: error: expected ';' before 'res2'
     ll res2 = MOD - a[n].ni;
        ^
0_0_37036497_12021.cpp:26:5: error: 'ans' was not declared in this scope
     ans = min(ans, min(res1, res2));
     ^
0_0_37036497_12021.cpp:26:24: error: 'res1' was not declared in this scope
     ans = min(ans, min(res1, res2));
                        ^
0_0_37036497_12021.cpp:26:30: error: 'res2' was not declared in this scope
     ans = min(ans, min(res1, res2));
                              ^


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 08:56:07, Gzip enabled