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_14175430_30093.cpp: In function 'int main()':
0_0_14175430_30093.cpp:8:28: error: 'n' was not declared in this scope
         scanf("%d%d%d%d", &n, &m, &p, &q);
                            ^
0_0_14175430_30093.cpp:8:32: error: 'm' was not declared in this scope
         scanf("%d%d%d%d", &n, &m, &p, &q);
                                ^
0_0_14175430_30093.cpp:8:36: error: 'p' was not declared in this scope
         scanf("%d%d%d%d", &n, &m, &p, &q);
                                    ^
0_0_14175430_30093.cpp:8:40: error: 'q' was not declared in this scope
         scanf("%d%d%d%d", &n, &m, &p, &q);
                                        ^
0_0_14175430_30093.cpp:13:13: error: 'ans' was not declared in this scope
             ans = k * q;
             ^
0_0_14175430_30093.cpp:14:61: error: 'min' was not declared in this scope
             printf("%d\n", ans + min((n-k*m)*p, (k*m==n)?0:q));
                                                             ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2025-02-18 17:37:03, Gzip enabled