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_36573795_10946.cpp: In function 'int main()':
0_0_36573795_10946.cpp:68:10: error: no match for call to '(std::uniform_int_distribution<int>) ()'
     l=rd();
          ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:49:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
                 from 0_0_36573795_10946.cpp:6:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/random.h:1668:11: note: candidates are:
     class uniform_int_distribution
           ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/random.h:1771:2: note: template<class _UniformRandomNumberGenerator> std::uniform_int_distribution<_IntType>::result_type std::uniform_int_distribution<_IntType>::operator()(_UniformRandomNumberGenerator&) [with _UniformRandomNumberGenerator = _UniformRandomNumberGenerator; _IntType = int]
  operator()(_UniformRandomNumberGenerator& __urng)
  ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/random.h:1771:2: note:   template argument deduction/substitution failed:
0_0_36573795_10946.cpp:68:10: note:   candidate expects 1 argument, 0 provided
     l=rd();
          ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:49:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
                 from 0_0_36573795_10946.cpp:6:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/random.h:1776:2: note: template<class _UniformRandomNumberGenerator> std::uniform_int_distribution<_IntType>::result_type std::uniform_int_distribution<_IntType>::operator()(_UniformRandomNumberGenerator&, const std::uniform_int_distribution<_IntType>::param_type&) [with _UniformRandomNumberGenerator = _UniformRandomNumberGenerator; _IntType = int]
  operator()(_UniformRandomNumberGenerator& __urng,
  ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/random.h:1776:2: note:   template argument deduction/substitution failed:
0_0_36573795_10946.cpp:68:10: note:   candidate expects 2 arguments, 0 provided
     l=rd();
          ^
0_0_36573795_10946.cpp:69:10: error: no match for call to '(std::uniform_int_distribution<int>) ()'
     r=rd();
          ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:49:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
                 from 0_0_36573795_10946.cpp:6:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/random.h:1668:11: note: candidates are:
     class uniform_int_distribution
           ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/random.h:1771:2: note: template<class _UniformRandomNumberGenerator> std::uniform_int_distribution<_IntType>::result_type std::uniform_int_distribution<_IntType>::operator()(_UniformRandomNumberGenerator&) [with _UniformRandomNumberGenerator = _UniformRandomNumberGenerator; _IntType = int]
  operator()(_UniformRandomNumberGenerator& __urng)
  ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/random.h:1771:2: note:   template argument deduction/substitution failed:
0_0_36573795_10946.cpp:69:10: note:   candidate expects 1 argument, 0 provided
     r=rd();
          ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:49:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
                 from 0_0_36573795_10946.cpp:6:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/random.h:1776:2: note: template<class _UniformRandomNumberGenerator> std::uniform_int_distribution<_IntType>::result_type std::uniform_int_distribution<_IntType>::operator()(_UniformRandomNumberGenerator&, const std::uniform_int_distribution<_IntType>::param_type&) [with _UniformRandomNumberGenerator = _UniformRandomNumberGenerator; _IntType = int]
  operator()(_UniformRandomNumberGenerator& __urng,
  ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/random.h:1776:2: note:   template argument deduction/substitution failed:
0_0_36573795_10946.cpp:69:10: note:   candidate expects 2 arguments, 0 provided
     r=rd();
          ^


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-29 22:04:51, Gzip enabled