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_30230588_7748.cpp: In function 'int main()':
0_0_30230588_7748.cpp:167:10: error: no match for 'operator=' (operand types are 'std::tuple<long long int, long long int, long long int, long long int>' and 'int')
  seed[0] = 0;
          ^
0_0_30230588_7748.cpp:167:10: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/functional:55:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:70,
                 from 0_0_30230588_7748.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/tuple:470:7: note: std::tuple< <template-parameter-1-1> >& std::tuple< <template-parameter-1-1> >::operator=(const std::tuple< <template-parameter-1-1> >&) [with _Elements = {long long int, long long int, long long int, long long int}]
       operator=(const tuple& __in)
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/tuple:470:7: note:   no known conversion for argument 1 from 'int' to 'const std::tuple<long long int, long long int, long long int, long long int>&'
GCC4.9.2/x86_64-w64-mingw32/include/c++/tuple:477:7: note: std::tuple< <template-parameter-1-1> >& std::tuple< <template-parameter-1-1> >::operator=(std::tuple< <template-parameter-1-1> >&&) [with _Elements = {long long int, long long int, long long int, long long int}]
       operator=(tuple&& __in)
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/tuple:477:7: note:   no known conversion for argument 1 from 'int' to 'std::tuple<long long int, long long int, long long int, long long int>&&'
GCC4.9.2/x86_64-w64-mingw32/include/c++/tuple:488:9: note: template<class ... _UElements, class> std::tuple< <template-parameter-1-1> >& std::tuple< <template-parameter-1-1> >::operator=(const std::tuple<_Args1 ...>&) [with _UElements = {_UElements ...}; <template-parameter-2-2> = <template-parameter-1-2>; _Elements = {long long int, long long int, long long int, long long int}]
         operator=(const tuple<_UElements...>& __in)
         ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/tuple:488:9: note:   template argument deduction/substitution failed:
0_0_30230588_7748.cpp:167:10: note:   mismatched types 'const std::tuple<_Elements ...>' and 'int'
  seed[0] = 0;
          ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/functional:55:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:70,
                 from 0_0_30230588_7748.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/tuple:498:9: note: template<class ... _UElements, class> std::tuple< <template-parameter-1-1> >& std::tuple< <template-parameter-1-1> >::operator=(std::tuple<_Args1 ...>&&) [with _UElements = {_UElements ...}; <template-parameter-2-2> = <template-parameter-1-2>; _Elements = {long long int, long long int, long long int, long long int}]
         operator=(tuple<_UElements...>&& __in)
         ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/tuple:498:9: note:   template argument deduction/substitution failed:
0_0_30230588_7748.cpp:167:10: note:   mismatched types 'std::tuple<_Elements ...>' and 'int'
  seed[0] = 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-06-02 08:48:59, Gzip enabled