/ WHOJ /

记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:7:13: error: 'v' was not declared in this scope
    7 |     cin>>s>>v;
      |             ^
foo.cc:13:13: error: 'ans' was not declared in this scope; did you mean 'vans'?
   13 |             ans=480-s/v-10;
      |             ^~~
      |             vans
foo.cc:15:13: error: 'ans' was not declared in this scope; did you mean 'vans'?
   15 |             ans=480-s/v-10-1;
      |             ^~~
      |             vans
foo.cc:16:17: error: 'ans' was not declared in this scope; did you mean 'vans'?
   16 |         int tmp=ans;
      |                 ^~~
      |                 vans
foo.cc:23:9: error: reference to 'min' is ambiguous
   23 |         min=tmp;
      |         ^~~
In file included from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/algorithm:62,
                 from stdc++.h:65:
/nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/bits/stl_algo.h:3455:5: note: candidates are: 'template<class _Tp, class _Compare> _Tp std::min(std::initializer_list<_Tp>, _Compare)'
 3455 |     min(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/bits/stl_algo.h:3449:5: note:                 'template<class _Tp> _Tp std::min(std::initializer_list<_Tp>)'
 3449 |     min(initializer_list<_Tp> __l)
      |     ^~~
In file included from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/bits/char_traits.h:39,
                 from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/ios:40,
                 from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/istream:38,
                 from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/sstream:38,
                 from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/complex:45,
                 from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/ccomplex:39,
                 from stdc++.h:54:
/nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/bits/stl_algobase.h:278:5: note:                 'template<class _Tp, class _Compare> const _Tp& std::min(const _Tp&, const _Tp&, _Compare)'
  278 |     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/bits/stl_algobase.h:230:5: note:                 'template<class _Tp> const _Tp& std::min(const _Tp&, const _Tp&)'
  230 |     min(const _Tp& __a, const _Tp& __b)
      |     ^~~
foo.cc:3:19: note:                 'int min'
    3 | int s,vans=0,hour,min;
      |                   ^~~
foo.cc:24:21: error: reference to 'min' is ambiguous
   24 |         if(hour<10&&min<10)
      |                     ^~~
In file included from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/algorithm:62,
                 from stdc++.h:65:
/nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/bits/stl_algo.h:3455:5: note: candidates are: 'template<class _Tp, class _Compare> _Tp std::min(std::initializer_list<_Tp>, _Compare)'
 3455 |     min(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/bits/stl_algo.h:3449:5: note:                 'template<class _Tp> _Tp std::min(std::initializer_list<_Tp>)'
 3449 |     min(initializer_list<_Tp> __l)
      |     ^~~
In file included from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/bits/char_traits.h:39,
                 from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/ios:40,
                 from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/istream:38,
                 from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/sstream:38,
                 from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/complex:45,
                 from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/ccomplex:39,
                 from stdc++.h:54:
/nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/bits/stl_algobase.h:278:5: note:                 'template<class _Tp, class _Compare> const _Tp& std::min(const _Tp&, const _Tp&, _Compare)'
  278 |     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/bits/stl_algobase.h:230:5: note:                 'template<class _Tp> const _Tp& std::min(const _Tp&, const _Tp&)'
  230 |     min(const _Tp& __a, const _Tp& __b)
      |     ^~~
foo.cc:3:19: note:                 'int min'
    3 | int s,vans=0,hour,min;
      |                   ^~~
foo.cc:25:40: error: reference to 'min' is ambiguous
   25 |             cout<<"0"<<hour<<":"<<"0"<<min<<endl;
      |                                        ^~~
In file included from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/algorithm:62,
                 from stdc++.h:65:
/nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/bits/stl_algo.h:3455:5: note: candidates are: 'template<class _Tp, class _Compare> _Tp std::min(std::initializer_list<_Tp>, _Compare)'
 3455 |     min(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/bits/stl_algo.h:3449:5: note:                 'template<class _Tp> _Tp std::min(std::initializer_list<_Tp>)'
 3449 |     min(initializer_list<_Tp> __l)
      |     ^~~
In file included from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/bits/char_traits.h:39,
                 from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/ios:40,
                 from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/istream:38,
                 from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/sstream:38,
                 from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/complex:45,
                 from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/ccomplex:39,
                 from stdc++.h:54:
/nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/bits/stl_algobase.h:278:5: note:                 'template<class _Tp, class _Compare> const _Tp& std::min(const _Tp&, const _Tp&, _Compare)'
  278 |     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/bits/stl_algobase.h:230:5: note:                 'template<class _Tp> const _Tp& std::min(const _Tp&, const _Tp&)'
  230 |     min(const _Tp& __a, const _Tp& __b)
      |     ^~~
foo.cc:3:19: note:                 'int min'
    3 | int s,vans=0,hour,min;
      |                   ^~~
foo.cc:26:26: error: reference to 'min' is ambiguous
   26 |         else if(hour<10&&min>=10)
      |                          ^~~
In file included from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/algorithm:62,
                 from stdc++.h:65:
/nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/bits/stl_algo.h:3455:5: note: candidates are: 'template<class _Tp, class _Compare> _Tp std::min(std::initializer_list<_Tp>, _Compare)'
 3455 |     min(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/bits/stl_algo.h:3449:5: note:                 'template<class _Tp> _Tp std::min(std::initializer_list<_Tp>)'
 3449 |     min(initializer_list<_Tp> __l)
      |     ^~~
In file included from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/bits/char_traits.h:39,
                 from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/ios:40,
                 from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/istream:38,
                 from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/sstream:38,
                 from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/complex:45,
                 from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/ccomplex:39,
                 from stdc++.h:54:
/nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/bits/stl_algobase.h:278:5: note:                 'template<class _Tp, class _Compare> const _Tp& std::min(const _Tp&, const _Tp&, _Compare)'
  278 |     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/bits/stl_algobase.h:230:5: note:                 'template<class _Tp> const _Tp& std::min(const _Tp&, const _Tp&)'
  230 |     min(const _Tp& __a, const _Tp& __b)
      |     ^~~
foo.cc:3:19: note:                 'int min'
    3 | int s,vans=0,hour,min;
      |                   ^~~
foo.cc:27:35: error: reference to 'min' is ambiguous
   27 |             cout<<"0"<<hour<<":"<<min<<endl;
      |                                   ^~~
In file included from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/algorithm:62,
                 from stdc++.h:65:
/nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/bits/stl_algo.h:3455:5: note: candidates are: 'template<class _Tp, class _Compare> _Tp std::min(std::initializer_list<_Tp>, _Compare)'
 3455 |     min(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/bits/stl_algo.h:3449:5: note:                 'template<class _Tp> _Tp std::min(std::initializer_list<_Tp>)'
 3449 |     min(initializer_list<_Tp> __l)
      |     ^~~
In file included from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/bits/char_traits.h:39,
                 from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/ios:40,
                 from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/istream:38,
                 from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/sstream:38,
                 from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/complex:45,
                 from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/ccomplex:39,
                 from stdc++.h:54:
/nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/bits/stl_algobase.h:278:5: note:                 'template<class _Tp, class _Compare> const _Tp& std::min(const _Tp&, const _Tp&, _Compare)'
  278 |     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/bits/stl_algobase.h:230:5: note:                 'template<class _Tp> const _Tp& std::min(const _Tp&, const _Tp&)'
  230 |     min(const _Tp& __a, const _Tp& __b)
      |     ^~~
foo.cc:3:19: note:                 'int min'
    3 | int s,vans=0,hour,min;
      |                   ^~~
foo.cc:28:27: error: reference to 'min' is ambiguous
   28 |         else if(hour>=10&&min<10)
      |                           ^~~
In file included from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/algorithm:62,
                 from stdc++.h:65:
/nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/bits/stl_algo.h:3455:5: note: candidates are: 'template<class _Tp, class _Compare> _Tp std::min(std::initializer_list<_Tp>, _Compare)'
 3455 |     min(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/bits/stl_algo.h:3449:5: note:                 'template<class _Tp> _Tp std::min(std::initializer_list<_Tp>)'
 3449 |     min(initializer_list<_Tp> __l)
      |     ^~~
In file included from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/bits/char_traits.h:39,
                 from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/ios:40,
                 from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/istream:38,
                 from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/sstream:38,
                 from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/complex:45,
                 from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/ccomplex:39,
                 from stdc++.h:54:
/nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/bits/stl_algobase.h:278:5: note:                 'template<class _Tp, class _Compare> const _Tp& std::min(const _Tp&, const _Tp&, _Compare)'
  278 |     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/bits/stl_algobase.h:230:5: note:                 'template<class _Tp> const _Tp& std::min(const _Tp&, const _Tp&)'
  230 |     min(const _Tp& __a, const _Tp& __b)
      |     ^~~
foo.cc:3:19: note:                 'int min'
    3 | int s,vans=0,hour,min;
      |                   ^~~
foo.cc:29:31: error: reference to 'min' is ambiguous
   29 |             cout<<hour<<":0"<<min<<endl;
      |                               ^~~
In file included from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/algorithm:62,
                 from stdc++.h:65:
/nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/bits/stl_algo.h:3455:5: note: candidates are: 'template<class _Tp, class _Compare> _Tp std::min(std::initializer_list<_Tp>, _Compare)'
 3455 |     min(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/bits/stl_algo.h:3449:5: note:                 'template<class _Tp> _Tp std::min(std::initializer_list<_Tp>)'
 3449 |     min(initializer_list<_Tp> __l)
      |     ^~~
In file included from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/bits/char_traits.h:39,
                 from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/ios:40,
                 from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/istream:38,
                 from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/sstream:38,
                 from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/complex:45,
                 from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/ccomplex:39,
                 from stdc++.h:54:
/nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/bits/stl_algobase.h:278:5: note:                 'template<class _Tp, class _Compare> const _Tp& std::min(const _Tp&, const _Tp&, _Compare)'
  278 |     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/bits/stl_algobase.h:230:5: note:                 'template<class _Tp> const _Tp& std::min(const _Tp&, const _Tp&)'
  230 |     min(const _Tp& __a, const _Tp& __b)
      |     ^~~
foo.cc:3:19: note:                 'int min'
    3 | int s,vans=0,hour,min;
      |                   ^~~
foo.cc:30:27: error: reference to 'min' is ambiguous
   30 |         else if(hour>=10&&min>=10)
      |                           ^~~
In file included from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/algorithm:62,
                 from stdc++.h:65:
/nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/bits/stl_algo.h:3455:5: note: candidates are: 'template<class _Tp, class _Compare> _Tp std::min(std::initializer_list<_Tp>, _Compare)'
 3455 |     min(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/bits/stl_algo.h:3449:5: note:                 'template<class _Tp> _Tp std::min(std::initializer_list<_Tp>)'
 3449 |     min(initializer_list<_Tp> __l)
      |     ^~~
In file included from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/bits/char_traits.h:39,
                 from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/ios:40,
                 from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/istream:38,
                 from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/sstream:38,
                 from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/complex:45,
                 from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/ccomplex:39,
                 from stdc++.h:54:
/nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/bits/stl_algobase.h:278:5: note:                 'template<class _Tp, class _Compare> const _Tp& std::min(const _Tp&, const _Tp&, _Compare)'
  278 |     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/bits/stl_algobase.h:230:5: note:                 'template<class _Tp> const _Tp& std::min(const _Tp&, const _Tp&)'
  230 |     min(const _Tp& __a, const _Tp& __b)
      |     ^~~
foo.cc:3:19: note:                 'int min'
    3 | int s,vans=0,hour,min;
      |                   ^~~
foo.cc:31:30: error: reference to 'min' is ambiguous
   31 |             cout<<hour<<":"<<min<<endl;
      |                              ^~~
In file included from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/algorithm:62,
                 from stdc++.h:65:
/nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/bits/stl_algo.h:3455:5: note: candidates are: 'template<class _Tp, class _Compare> _Tp std::min(std::initializer_list<_Tp>, _Compare)'
 3455 |     min(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/bits/stl_algo.h:3449:5: note:                 'template<class _Tp> _Tp std::min(std::initializer_list<_Tp>)'
 3449 |     min(initializer_list<_Tp> __l)
      |     ^~~
In file included from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/bits/char_traits.h:39,
                 from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/ios:40,
                 from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/istream:38,
                 from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/sstream:38,
                 from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/complex:45,
                 from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/ccomplex:39,
                 from stdc++.h:54:
/nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/bits/stl_algobase.h:278:5: note:                 'template<class _Tp, class _Compare> const _Tp& std::min(const _Tp&, const _Tp&, _Compare)'
  278 |     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/bits/stl_algobase.h:230:5: note:                 'template<class _Tp> const _Tp& std::min(const _Tp&, const _Tp&)'
  230 |     min(const _Tp& __a, const _Tp& __b)
      |     ^~~
foo.cc:3:19: note:                 'int min'
    3 | int s,vans=0,hour,min;
      |                   ^~~
foo.cc:37:13: error: 'ans' was not declared in this scope; did you mean 'vans'?
   37 |             ans=s/v+10;
      |             ^~~
      |             vans
foo.cc:39:13: error: 'ans' was not declared in this scope; did you mean 'vans'?
   39 |             ans=s/v+10+1;
      |             ^~~
      |             vans
foo.cc:40:17: error: 'ans' was not declared in this scope; did you mean 'vans'?
   40 |         int tmp=ans;
      |                 ^~~
      |                 vans
foo.cc:43:9: error: reference to 'min' is ambiguous
   43 |         min=60;
      |         ^~~
In file included from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/algorithm:62,
                 from stdc++.h:65:
/nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/bits/stl_algo.h:3455:5: note: candidates are: 'template<class _Tp, class _Compare> _Tp std::min(std::initializer_list<_Tp>, _Compare)'
 3455 |     min(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/bits/stl_algo.h:3449:5: note:                 'template<class _Tp> _Tp std::min(std::initializer_list<_Tp>)'
 3449 |     min(initializer_list<_Tp> __l)
      |     ^~~
In file included from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/bits/char_traits.h:39,
                 from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/ios:40,
                 from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/istream:38,
                 from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/sstream:38,
                 from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/complex:45,
                 from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/ccomplex:39,
                 from stdc++.h:54:
/nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/bits/stl_algobase.h:278:5: note:                 'template<class _Tp, class _Compare> const _Tp& std::min(const _Tp&, const _Tp&, _Compare)'
  278 |     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/bits/stl_algobase.h:230:5: note:                 'template<class _Tp> const _Tp& std::min(const _Tp&, const _Tp&)'
  230 |     min(const _Tp& __a, const _Tp& __b)
      |     ^~~
foo.cc:3:19: note:                 'int min'
    3 | int s,vans=0,hour,min;
      |                   ^~~
foo.cc:50:9: error: reference to 'min' is ambiguous
   50 |         min=60-tmp;
      |         ^~~
In file included from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/algorithm:62,
                 from stdc++.h:65:
/nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/bits/stl_algo.h:3455:5: note: candidates are: 'template<class _Tp, class _Compare> _Tp std::min(std::initializer_list<_Tp>, _Compare)'
 3455 |     min(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/bits/stl_algo.h:3449:5: note:                 'template<class _Tp> _Tp std::min(std::initializer_list<_Tp>)'
 3449 |     min(initializer_list<_Tp> __l)
      |     ^~~
In file included from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/bits/char_traits.h:39,
                 from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/ios:40,
                 from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/istream:38,
                 from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/sstream:38,
                 from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/complex:45,
                 from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/ccomplex:39,
                 from stdc++.h:54:
/nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/bits/stl_algobase.h:278:5: note:                 'template<class _Tp, class _Compare> const _Tp& std::min(const _Tp&, const _Tp&, _Compare)'
  278 |     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/bits/stl_algobase.h:230:5: note:                 'template<class _Tp> const _Tp& std::min(const _Tp&, const _Tp&)'
  230 |     min(const _Tp& __a, const _Tp& __b)
      |     ^~~
foo.cc:3:19: note:                 'int min'
    3 | int s,vans=0,hour,min;
      |                   ^~~
foo.cc:51:21: error: reference to 'min' is ambiguous
   51 |         if(hour<10&&min<10)
      |                     ^~~
In file included from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/algorithm:62,
                 from stdc++.h:65:
/nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/bits/stl_algo.h:3455:5: note: candidates are: 'template<class _Tp, class _Compare> _Tp std::min(std::initializer_list<_Tp>, _Compare)'
 3455 |     min(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/bits/stl_algo.h:3449:5: note:                 'template<class _Tp> _Tp std::min(std::initializer_list<_Tp>)'
 3449 |     min(initializer_list<_Tp> __l)
      |     ^~~
In file included from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/bits/char_traits.h:39,
                 from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/ios:40,
                 from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/istream:38,
                 from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/sstream:38,
                 from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/complex:45,
                 from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/ccomplex:39,
                 from stdc++.h:54:
/nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/bits/stl_algobase.h:278:5: note:                 'template<class _Tp, class _Compare> const _Tp& std::min(const _Tp&, const _Tp&, _Compare)'
  278 |     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/bits/stl_algobase.h:230:5: note:                 'template<class _Tp> const _Tp& std::min(const _Tp&, const _Tp&)'
  230 |     min(const _Tp& __a, const _Tp& __b)
      |     ^~~
foo.cc:3:19: note:                 'int min'
    3 | int s,vans=0,hour,min;
      |                   ^~~
foo.cc:52:40: error: reference to 'min' is ambiguous
   52 |             cout<<"0"<<hour<<":"<<"0"<<min<<endl;
      |                                        ^~~
In file included from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/algorithm:62,
                 from stdc++.h:65:
/nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/bits/stl_algo.h:3455:5: note: candidates are: 'template<class _Tp, class _Compare> _Tp std::min(std::initializer_list<_Tp>, _Compare)'
 3455 |     min(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/bits/stl_algo.h:3449:5: note:                 'template<class _Tp> _Tp std::min(std::initializer_list<_Tp>)'
 3449 |     min(initializer_list<_Tp> __l)
      |     ^~~
In file included from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/bits/char_traits.h:39,
                 from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/ios:40,
                 from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/istream:38,
                 from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/sstream:38,
                 from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/complex:45,
                 from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/ccomplex:39,
                 from stdc++.h:54:
/nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/bits/stl_algobase.h:278:5: note:                 'template<class _Tp, class _Compare> const _Tp& std::min(const _Tp&, const _Tp&, _Compare)'
  278 |     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/bits/stl_algobase.h:230:5: note:                 'template<class _Tp> const _Tp& std::min(const _Tp&, const _Tp&)'
  230 |     min(const _Tp& __a, const _Tp& __b)
      |     ^~~
foo.cc:3:19: note:                 'int min'
    3 | int s,vans=0,hour,min;
      |                   ^~~
foo.cc:53:27: error: reference to 'min' is ambiguous
   53 |         else if(hour<10 &&min>=10)
      |                           ^~~
In file included from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/algorithm:62,
                 from stdc++.h:65:
/nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/bits/stl_algo.h:3455:5: note: candidates are: 'template<class _Tp, class _Compare> _Tp std::min(std::initializer_list<_Tp>, _Compare)'
 3455 |     min(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/bits/stl_algo.h:3449:5: note:                 'template<class _Tp> _Tp std::min(std::initializer_list<_Tp>)'
 3449 |     min(initializer_list<_Tp> __l)
      |     ^~~
In file included from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/bits/char_traits.h:39,
                 from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/ios:40,
                 from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/istream:38,
                 from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/sstream:38,
                 from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/complex:45,
                 from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/ccomplex:39,
                 from stdc++.h:54:
/nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/bits/stl_algobase.h:278:5: note:                 'template<class _Tp, class _Compare> const _Tp& std::min(const _Tp&, const _Tp&, _Compare)'
  278 |     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/bits/stl_algobase.h:230:5: note:                 'template<class _Tp> const _Tp& std::min(const _Tp&, const _Tp&)'
  230 |     min(const _Tp& __a, const _Tp& __b)
      |     ^~~
foo.cc:3:19: note:                 'int min'
    3 | int s,vans=0,hour,min;
      |                   ^~~
foo.cc:54:35: error: reference to 'min' is ambiguous
   54 |             cout<<"0"<<hour<<":"<<min<<endl;
      |                                   ^~~
In file included from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/algorithm:62,
                 from stdc++.h:65:
/nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/bits/stl_algo.h:3455:5: note: candidates are: 'template<class _Tp, class _Compare> _Tp std::min(std::initializer_list<_Tp>, _Compare)'
 3455 |     min(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/bits/stl_algo.h:3449:5: note:                 'template<class _Tp> _Tp std::min(std::initializer_list<_Tp>)'
 3449 |     min(initializer_list<_Tp> __l)
      |     ^~~
In file included from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/bits/char_traits.h:39,
                 from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/ios:40,
                 from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/istream:38,
                 from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/sstream:38,
                 from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/complex:45,
                 from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/ccomplex:39,
                 from stdc++.h:54:
/nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/bits/stl_algobase.h:278:5: note:                 'template<class _Tp, class _Compare> const _Tp& std::min(const _Tp&, const _Tp&, _Compare)'
  278 |     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/bits/stl_algobase.h:230:5: note:                 'template<class _Tp> const _Tp& std::min(const _Tp&, const _Tp&)'
  230 |     min(const _Tp& __a, const _Tp& __b)
      |     ^~~
foo.cc:3:19: note:                 'int min'
    3 | int s,vans=0,hour,min;
      |                   ^~~
foo.cc:55:27: error: reference to 'min' is ambiguous
   55 |         else if(hour>=10&&min<10)
      |                           ^~~
In file included from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/algorithm:62,
                 from stdc++.h:65:
/nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/bits/stl_algo.h:3455:5: note: candidates are: 'template<class _Tp, class _Compare> _Tp std::min(std::initializer_list<_Tp>, _Compare)'
 3455 |     min(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/bits/stl_algo.h:3449:5: note:                 'template<class _Tp> _Tp std::min(std::initializer_list<_Tp>)'
 3449 |     min(initializer_list<_Tp> __l)
      |     ^~~
In file included from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/bits/char_traits.h:39,
                 from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/ios:40,
                 from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/istream:38,
                 from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/sstream:38,
                 from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/complex:45,
                 from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/ccomplex:39,
                 from stdc++.h:54:
/nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/bits/stl_algobase.h:278:5: note:                 'template<class _Tp, class _Compare> const _Tp& std::min(const _Tp&, const _Tp&, _Compare)'
  278 |     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/bits/stl_algobase.h:230:5: note:                 'template<class _Tp> const _Tp& std::min(const _Tp&, const _Tp&)'
  230 |     min(const _Tp& __a, const _Tp& __b)
      |     ^~~
foo.cc:3:19: note:                 'int min'
    3 | int s,vans=0,hour,min;
      |                   ^~~
foo.cc:56:31: error: reference to 'min' is ambiguous
   56 |             cout<<hour<<":0"<<min<<endl;
      |                               ^~~
In file included from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/algorithm:62,
                 from stdc++.h:65:
/nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/bits/stl_algo.h:3455:5: note: candidates are: 'template<class _Tp, class _Compare> _Tp std::min(std::initializer_list<_Tp>, _Compare)'
 3455 |     min(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/bits/stl_algo.h:3449:5: note:                 'template<class _Tp> _Tp std::min(std::initializer_list<_Tp>)'
 3449 |     min(initializer_list<_Tp> __l)
      |     ^~~
In file included from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/bits/char_traits.h:39,
                 from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/ios:40,
                 from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/istream:38,
                 from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/sstream:38,
                 from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/complex:45,
                 from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/ccomplex:39,
                 from stdc++.h:54:
/nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/bits/stl_algobase.h:278:5: note:                 'template<class _Tp, class _Compare> const _Tp& std::min(const _Tp&, const _Tp&, _Compare)'
  278 |     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/bits/stl_algobase.h:230:5: note:                 'template<class _Tp> const _Tp& std::min(const _Tp&, const _Tp&)'
  230 |     min(const _Tp& __a, const _Tp& __b)
      |     ^~~
foo.cc:3:19: note:                 'int min'
    3 | int s,vans=0,hour,min;
      |                   ^~~
foo.cc:57:27: error: reference to 'min' is ambiguous
   57 |         else if(hour>=10&&min>=10)
      |                           ^~~
In file included from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/algorithm:62,
                 from stdc++.h:65:
/nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/bits/stl_algo.h:3455:5: note: candidates are: 'template<class _Tp, class _Compare> _Tp std::min(std::initializer_list<_Tp>, _Compare)'
 3455 |     min(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/bits/stl_algo.h:3449:5: note:                 'template<class _Tp> _Tp std::min(std::initializer_list<_Tp>)'
 3449 |     min(initializer_list<_Tp> __l)
      |     ^~~
In file included from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/bits/char_traits.h:39,
                 from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/ios:40,
                 from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/istream:38,
                 from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/sstream:38,
                 from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/complex:45,
                 from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/ccomplex:39,
                 from stdc++.h:54:
/nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/bits/stl_algobase.h:278:5: note:                 'template<class _Tp, class _Compare> const _Tp& std::min(const _Tp&, const _Tp&, _Compare)'
  278 |     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/bits/stl_algobase.h:230:5: note:                 'template<class _Tp> const _Tp& std::min(const _Tp&, const _Tp&)'
  230 |     min(const _Tp& __a, const _Tp& __b)
      |     ^~~
foo.cc:3:19: note:                 'int min'
    3 | int s,vans=0,hour,min;
      |                   ^~~
foo.cc:58:30: error: reference to 'min' is ambiguous
   58 |             cout<<hour<<":"<<min<<endl;
      |                              ^~~
In file included from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/algorithm:62,
                 from stdc++.h:65:
/nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/bits/stl_algo.h:3455:5: note: candidates are: 'template<class _Tp, class _Compare> _Tp std::min(std::initializer_list<_Tp>, _Compare)'
 3455 |     min(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/bits/stl_algo.h:3449:5: note:                 'template<class _Tp> _Tp std::min(std::initializer_list<_Tp>)'
 3449 |     min(initializer_list<_Tp> __l)
      |     ^~~
In file included from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/bits/char_traits.h:39,
                 from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/ios:40,
                 from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/istream:38,
                 from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/sstream:38,
                 from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/complex:45,
                 from /nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/ccomplex:39,
                 from stdc++.h:54:
/nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/bits/stl_algobase.h:278:5: note:                 'template<class _Tp, class _Compare> const _Tp& std::min(const _Tp&, const _Tp&, _Compare)'
  278 |     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/nix/store/8rx9i9c5lh5rmz31y6ndh7j3nslnk8cp-gcc-11.3.0/include/c++/11.3.0/bits/stl_algobase.h:230:5: note:                 'template<class _Tp> const _Tp& std::min(const _Tp&, const _Tp&)'
  230 |     min(const _Tp& __a, const _Tp& __b)
      |     ^~~
foo.cc:3:19: note:                 'int min'
    3 | int s,vans=0,hour,min;
      |                   ^~~
Found 10 testcases.
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1094 别迟到
题目数据
下载
语言
C++
递交时间
2022-03-19 14:21:42
评测时间
2022-09-12 13:21:04
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes