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_22007434_13741.cpp: In function 'mat mul(mat&, mat&)':
0_0_22007434_13741.cpp:8:11: error: no matching function for call to 'std::vector<std::vector<int> >::vector(int, int)'
 {mat c(2,2);
           ^
0_0_22007434_13741.cpp:8:11: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:64:0,
                 from 0_0_22007434_13741.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:401:9: note: template<class _InputIterator, class> std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&)
         vector(_InputIterator __first, _InputIterator __last,
         ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:401:9: note:   template argument deduction/substitution failed:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:373:7: note: std::vector<_Tp, _Alloc>::vector(std::initializer_list<_Tp>, const allocator_type&) [with _Tp = std::vector<int>; _Alloc = std::allocator<std::vector<int> >; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<std::vector<int> >]
       vector(initializer_list<value_type> __l,
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:373:7: note:   no known conversion for argument 1 from 'int' to 'std::initializer_list<std::vector<int> >'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:348:7: note: std::vector<_Tp, _Alloc>::vector(std::vector<_Tp, _Alloc>&&, const allocator_type&) [with _Tp = std::vector<int>; _Alloc = std::allocator<std::vector<int> >; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<std::vector<int> >]
       vector(vector&& __rv, const allocator_type& __m)
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:348:7: note:   no known conversion for argument 1 from 'int' to 'std::vector<std::vector<int> >&&'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:339:7: note: std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&, const allocator_type&) [with _Tp = std::vector<int>; _Alloc = std::allocator<std::vector<int> >; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<std::vector<int> >]
       vector(const vector& __x, const allocator_type& __a)
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:339:7: note:   no known conversion for argument 1 from 'int' to 'const std::vector<std::vector<int> >&'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:335:7: note: std::vector<_Tp, _Alloc>::vector(std::vector<_Tp, _Alloc>&&) [with _Tp = std::vector<int>; _Alloc = std::allocator<std::vector<int> >]
       vector(vector&& __x) noexcept
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:335:7: note:   candidate expects 1 argument, 2 provided
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:318:7: note: std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = std::vector<int>; _Alloc = std::allocator<std::vector<int> >]
       vector(const vector& __x)
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:318:7: note:   candidate expects 1 argument, 2 provided
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:289:7: note: std::vector<_Tp, _Alloc>::vector(std::vector<_Tp, _Alloc>::size_type, const value_type&, const allocator_type&) [with _Tp = std::vector<int>; _Alloc = std::allocator<std::vector<int> >; std::vector<_Tp, _Alloc>::size_type = long long unsigned int; std::vector<_Tp, _Alloc>::value_type = std::vector<int>; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<std::vector<int> >]
       vector(size_type __n, const value_type& __value,
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:289:7: note:   no known conversion for argument 2 from 'int' to 'const value_type& {aka const std::vector<int>&}'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:277:7: note: std::vector<_Tp, _Alloc>::vector(std::vector<_Tp, _Alloc>::size_type, const allocator_type&) [with _Tp = std::vector<int>; _Alloc = std::allocator<std::vector<int> >; std::vector<_Tp, _Alloc>::size_type = long long unsigned int; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<std::vector<int> >]
       vector(size_type __n, const allocator_type& __a = allocator_type())
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:277:7: note:   no known conversion for argument 2 from 'int' to 'const allocator_type& {aka const std::allocator<std::vector<int> >&}'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:264:7: note: std::vector<_Tp, _Alloc>::vector(const allocator_type&) [with _Tp = std::vector<int>; _Alloc = std::allocator<std::vector<int> >; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<std::vector<int> >]
       vector(const allocator_type& __a) _GLIBCXX_NOEXCEPT
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:264:7: note:   candidate expects 1 argument, 2 provided
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:253:7: note: std::vector<_Tp, _Alloc>::vector() [with _Tp = std::vector<int>; _Alloc = std::allocator<std::vector<int> >]
       vector()
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:253:7: note:   candidate expects 0 arguments, 2 provided
0_0_22007434_13741.cpp: In function 'int main()':
0_0_22007434_13741.cpp:17:11: error: no matching function for call to 'std::vector<std::vector<int> >::vector(int, int)'
 {mat e(2,2);
           ^
0_0_22007434_13741.cpp:17:11: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:64:0,
                 from 0_0_22007434_13741.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:401:9: note: template<class _InputIterator, class> std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&)
         vector(_InputIterator __first, _InputIterator __last,
         ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:401:9: note:   template argument deduction/substitution failed:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:373:7: note: std::vector<_Tp, _Alloc>::vector(std::initializer_list<_Tp>, const allocator_type&) [with _Tp = std::vector<int>; _Alloc = std::allocator<std::vector<int> >; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<std::vector<int> >]
       vector(initializer_list<value_type> __l,
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:373:7: note:   no known conversion for argument 1 from 'int' to 'std::initializer_list<std::vector<int> >'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:348:7: note: std::vector<_Tp, _Alloc>::vector(std::vector<_Tp, _Alloc>&&, const allocator_type&) [with _Tp = std::vector<int>; _Alloc = std::allocator<std::vector<int> >; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<std::vector<int> >]
       vector(vector&& __rv, const allocator_type& __m)
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:348:7: note:   no known conversion for argument 1 from 'int' to 'std::vector<std::vector<int> >&&'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:339:7: note: std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&, const allocator_type&) [with _Tp = std::vector<int>; _Alloc = std::allocator<std::vector<int> >; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<std::vector<int> >]
       vector(const vector& __x, const allocator_type& __a)
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:339:7: note:   no known conversion for argument 1 from 'int' to 'const std::vector<std::vector<int> >&'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:335:7: note: std::vector<_Tp, _Alloc>::vector(std::vector<_Tp, _Alloc>&&) [with _Tp = std::vector<int>; _Alloc = std::allocator<std::vector<int> >]
       vector(vector&& __x) noexcept
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:335:7: note:   candidate expects 1 argument, 2 provided
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:318:7: note: std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = std::vector<int>; _Alloc = std::allocator<std::vector<int> >]
       vector(const vector& __x)
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:318:7: note:   candidate expects 1 argument, 2 provided
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:289:7: note: std::vector<_Tp, _Alloc>::vector(std::vector<_Tp, _Alloc>::size_type, const value_type&, const allocator_type&) [with _Tp = std::vector<int>; _Alloc = std::allocator<std::vector<int> >; std::vector<_Tp, _Alloc>::size_type = long long unsigned int; std::vector<_Tp, _Alloc>::value_type = std::vector<int>; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<std::vector<int> >]
       vector(size_type __n, const value_type& __value,
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:289:7: note:   no known conversion for argument 2 from 'int' to 'const value_type& {aka const std::vector<int>&}'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:277:7: note: std::vector<_Tp, _Alloc>::vector(std::vector<_Tp, _Alloc>::size_type, const allocator_type&) [with _Tp = std::vector<int>; _Alloc = std::allocator<std::vector<int> >; std::vector<_Tp, _Alloc>::size_type = long long unsigned int; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<std::vector<int> >]
       vector(size_type __n, const allocator_type& __a = allo


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-17 19:04:01, Gzip enabled