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_37036465_10179.cpp:4:7: error: 'll' does not name a type
 const ll MOD =  12 * 60 * 360;
       ^
0_0_37036465_10179.cpp:7:5: error: 'll' does not name a type
     ll shun, ni;
     ^
0_0_37036465_10179.cpp: In function 'bool cmp(oclock, oclock)':
0_0_37036465_10179.cpp:12:14: error: 'struct oclock' has no member named 'shun'
     return a.shun < b.shun;
              ^
0_0_37036465_10179.cpp:12:23: error: 'struct oclock' has no member named 'shun'
     return a.shun < b.shun;
                       ^
0_0_37036465_10179.cpp: In function 'int main()':
0_0_37036465_10179.cpp:22:5: error: 'll' was not declared in this scope
     ll tmp = h * 360 * 60 + m * 360 + s * 6;
     ^
0_0_37036465_10179.cpp:27:14: error: 'struct oclock' has no member named 'shun'
         a[i].shun = ((h * 60 + m) * 360 + s * 6 + MOD - tmp) % MOD;
              ^
0_0_37036465_10179.cpp:27:51: error: 'MOD' was not declared in this scope
         a[i].shun = ((h * 60 + m) * 360 + s * 6 + MOD - tmp) % MOD;
                                                   ^
0_0_37036465_10179.cpp:27:57: error: 'tmp' was not declared in this scope
         a[i].shun = ((h * 60 + m) * 360 + s * 6 + MOD - tmp) % MOD;
                                                         ^
0_0_37036465_10179.cpp:28:14: error: 'struct oclock' has no member named 'ni'
         a[i].ni = MOD - a[i].shun;
              ^
0_0_37036465_10179.cpp:28:30: error: 'struct oclock' has no member named 'shun'
         a[i].ni = MOD - a[i].shun;
                              ^
0_0_37036465_10179.cpp:32:8: error: expected ';' before 'ans'
     ll ans = MOD;
        ^
0_0_37036465_10179.cpp:33:8: error: expected ';' before 'res1'
     ll res1 = MOD - a[1].shun;
        ^
0_0_37036465_10179.cpp:34:8: error: expected ';' before 'res2'
     ll res2 = MOD - a[n].ni;
        ^
0_0_37036465_10179.cpp:35:5: error: 'ans' was not declared in this scope
     ans = min(ans, min(res1, res2));
     ^
0_0_37036465_10179.cpp:35:24: error: 'res1' was not declared in this scope
     ans = min(ans, min(res1, res2));
                        ^
0_0_37036465_10179.cpp:35: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:39:24, Gzip enabled