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_14082752_29895.cpp:4:9: error: 'a' was not declared in this scope
 int min(a,b)
         ^
0_0_14082752_29895.cpp:4:11: error: 'b' was not declared in this scope
 int min(a,b)
           ^
0_0_14082752_29895.cpp:4:12: error: expression list treated as compound expression in initializer [-fpermissive]
 int min(a,b)
            ^
0_0_14082752_29895.cpp:5:1: error: expected ',' or ';' before '{' token
 {
 ^
0_0_14082752_29895.cpp:11:11: error: '::main' must return 'int'
 void main()
           ^
0_0_14082752_29895.cpp: In function 'int main()':
0_0_14082752_29895.cpp:17:29: error: 'min' cannot be used as a function
      b=min(min(a[i]*2,a[j]*3),min(a[k]*5,a[l]*7));
                             ^
0_0_14082752_29895.cpp:17:48: error: 'min' cannot be used as a function
      b=min(min(a[i]*2,a[j]*3),min(a[k]*5,a[l]*7));
                                                ^
0_0_14082752_29895.cpp:17:49: error: 'min' cannot be used as a function
      b=min(min(a[i]*2,a[j]*3),min(a[k]*5,a[l]*7));
                                                 ^
0_0_14082752_29895.cpp:43:15: error: 'exit' was not declared in this scope
         exit(0);
               ^


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-23 04:50:42, Gzip enabled