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_39366000_14179.cpp: In function 'int main()':
0_0_39366000_14179.cpp:20:31: error: expected ';' before 'for'
   20 |                scanf("%d", &n)
      |                               ^
      |                               ;
   21 |            for(i=0; i<n; i++)
      |            ~~~                 
0_0_39366000_14179.cpp:21:29: error: expected ';' before ')' token
   21 |            for(i=0; i<n; i++)
      |                             ^
      |                             ;
0_0_39366000_14179.cpp:31:60: error: 'min' was not declared in this scope; did you mean 'std::min'?
   31 |                                     if(a2>0.000001 && a2 < min) min = a2;
      |                                                            ^~~
      |                                                            std::min
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/specfun.h:43,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/cmath:3716,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/math.h:36,
                 from 0_0_39366000_14179.cpp:2:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_algobase.h:281:5: note: 'std::min' declared here
  281 |     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
0_0_39366000_14179.cpp:34:19: error: 'min' was not declared in this scope; did you mean 'std::min'?
   34 |                if(min < 1e10)
      |                   ^~~
      |                   std::min
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_algobase.h:281:5: note: 'std::min' declared here
  281 |     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
0_0_39366000_14179.cpp:35:23: error: 'print' was not declared in this scope; did you mean 'rint'?
   35 |                       print("%.2f\n", min/2);
      |                       ^~~~~
      |                       rint
0_0_39366000_14179.cpp:37:23: error: 'print' was not declared in this scope; did you mean 'rint'?
   37 |                       print("Impossible\n");
      |                       ^~~~~
      |                       rint


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-12-02 12:54:17, Gzip enabled