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_38278032_9725.cpp: In lambda function:
0_0_38278032_9725.cpp:19:21: error: missing template arguments before 'res'
         std::vector res(n, std::vector<int>(n));
                     ^
0_0_38278032_9725.cpp:23:21: error: 'res' was not declared in this scope
                     res[i][j] += a[i][k] * a[k][j];
                     ^
0_0_38278032_9725.cpp:27:16: error: 'res' was not declared in this scope
         return res;
                ^
0_0_38278032_9725.cpp: In lambda function:
0_0_38278032_9725.cpp:40:29: error: no match for 'operator=' (operand types are 'std::vector<std::vector<int> >' and 'void')
         for (; b; b /= 2, a = selfMul()) {
                             ^
0_0_38278032_9725.cpp:40:29: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:69:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/random.h:34,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:49,
                 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 GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:64,
                 from 0_0_38278032_9725.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/vector.tcc:167:5: note: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _Alloc>&) [with _Tp = std::vector<int>; _Alloc = std::allocator<std::vector<int> >]
     vector<_Tp, _Alloc>::
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/vector.tcc:167:5: note:   no known conversion for argument 1 from 'void' to 'const std::vector<std::vector<int> >&'
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:64:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/random.h:34,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:49,
                 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 GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:64,
                 from 0_0_38278032_9725.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:448:7: note: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::vector<_Tp, _Alloc>&&) [with _Tp = std::vector<int>; _Alloc = std::allocator<std::vector<int> >]
       operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move())
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:448:7: note:   no known conversion for argument 1 from 'void' to 'std::vector<std::vector<int> >&&'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:470:7: note: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::initializer_list<_Tp>) [with _Tp = std::vector<int>; _Alloc = std::allocator<std::vector<int> >]
       operator=(initializer_list<value_type> __l)
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:470:7: note:   no known conversion for argument 1 from 'void' to 'std::initializer_list<std::vector<int> >'


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-29 12:23:09, Gzip enabled