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_32867154_2789.cpp: In function 'int min(int, int, int)':
0_0_32867154_2789.cpp:2:27: error: too few arguments to function 'int min(int, int, int)'
     return min(a, min(b, c));
                           ^
0_0_32867154_2789.cpp:1:5: note: declared here
 int min(int a, int b, int c){
     ^
0_0_32867154_2789.cpp: In function 'int min(int, int, int, int)':
0_0_32867154_2789.cpp:6:31: error: no matching function for call to 'min(int&, int)'
     return min(a, min(b, c, d));
                               ^
0_0_32867154_2789.cpp:6:31: note: candidates are:
0_0_32867154_2789.cpp:1:5: note: int min(int, int, int)
 int min(int a, int b, int c){
     ^
0_0_32867154_2789.cpp:1:5: note:   candidate expects 3 arguments, 2 provided
0_0_32867154_2789.cpp:5:5: note: int min(int, int, int, int)
 int min(int a, int b, int c, int d){
     ^
0_0_32867154_2789.cpp:5:5: note:   candidate expects 4 arguments, 2 provided
0_0_32867154_2789.cpp: In function 'bool solve(int, int)':
0_0_32867154_2789.cpp:14:23: error: no matching function for call to 'min(int&, int&)'
     int x = min(a1, a2);
                       ^
0_0_32867154_2789.cpp:14:23: note: candidates are:
0_0_32867154_2789.cpp:1:5: note: int min(int, int, int)
 int min(int a, int b, int c){
     ^
0_0_32867154_2789.cpp:1:5: note:   candidate expects 3 arguments, 2 provided
0_0_32867154_2789.cpp:5:5: note: int min(int, int, int, int)
 int min(int a, int b, int c, int d){
     ^
0_0_32867154_2789.cpp:5:5: note:   candidate expects 4 arguments, 2 provided
0_0_32867154_2789.cpp: In function 'int main()':
0_0_32867154_2789.cpp:109:19: error: 'scanf' was not declared in this scope
     scanf("%d", &t);
                   ^
0_0_32867154_2789.cpp:113:27: error: 'puts' was not declared in this scope
         if(ans) puts("Yes");
                           ^
0_0_32867154_2789.cpp:114:23: error: 'puts' was not declared in this scope
         else puts("No");
                       ^


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-16 21:16:50, Gzip enabled