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_33143805_22143.cpp:66:17: error: expected '}' at end of input
         mod_ = m.
                 ^
0_0_33143805_22143.cpp: In constructor 'taro::math::Matrix<T>::Matrix(size_t, size_t, T)':
0_0_33143805_22143.cpp:48:59: error: class 'taro::math::Matrix<T>' does not have any field named 'mod_'
     Matrix(size_t row_size, size_t col_size, T mod = 0) : mod_(mod) { resize(row_size, col_size); }
                                                           ^
0_0_33143805_22143.cpp:48:96: error: there are no arguments to 'resize' that depend on a template parameter, so a declaration of 'resize' must be available [-fpermissive]
     Matrix(size_t row_size, size_t col_size, T mod = 0) : mod_(mod) { resize(row_size, col_size); }
                                                                                                ^
0_0_33143805_22143.cpp:48:96: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
0_0_33143805_22143.cpp: In constructor 'taro::math::Matrix<T>::Matrix(std::initializer_list<std::vector<T> >)':
0_0_33143805_22143.cpp:50:55: error: class 'taro::math::Matrix<T>' does not have any field named 'data_'
     Matrix(std::initializer_list<std::vector<T>> l) : data_(l.begin(), l.end()) {
                                                       ^
0_0_33143805_22143.cpp:51:9: error: 'row_size_' was not declared in this scope
         row_size_ = data_.size();
         ^
0_0_33143805_22143.cpp:51:21: error: 'data_' was not declared in this scope
         row_size_ = data_.size();
                     ^
0_0_33143805_22143.cpp:52:9: error: 'col_size_' was not declared in this scope
         col_size_ = data_[0].size();
         ^
0_0_33143805_22143.cpp:53:32: error: range-based 'for' expression of type 'auto' has incomplete type
         for (const auto& row : data_) {
                                ^
0_0_33143805_22143.cpp: In constructor 'taro::math::Matrix<T>::Matrix(taro::math::Matrix<T>&&)':
0_0_33143805_22143.cpp:63:11: error: class 'taro::math::Matrix<T>' does not have any field named 'mod_'
         : mod_(m.mod_), row_size_(m.row_size_), col_size_(m.col_size_), data_(std::move(m.data_)) {}
           ^
0_0_33143805_22143.cpp:63:25: error: class 'taro::math::Matrix<T>' does not have any field named 'row_size_'
         : mod_(m.mod_), row_size_(m.row_size_), col_size_(m.col_size_), data_(std::move(m.data_)) {}
                         ^
0_0_33143805_22143.cpp:63:49: error: class 'taro::math::Matrix<T>' does not have any field named 'col_size_'
         : mod_(m.mod_), row_size_(m.row_size_), col_size_(m.col_size_), data_(std::move(m.data_)) {}
                                                 ^
0_0_33143805_22143.cpp:63:73: error: class 'taro::math::Matrix<T>' does not have any field named 'data_'
         : mod_(m.mod_), row_size_(m.row_size_), col_size_(m.col_size_), data_(std::move(m.data_)) {}
                                                                         ^
0_0_33143805_22143.cpp: In member function 'taro::math::Matrix<T>& taro::math::Matrix<T>::operator=(const taro::math::Matrix<T>&)':
0_0_33143805_22143.cpp:66:9: error: 'mod_' was not declared in this scope
         mod_ = m.
         ^
0_0_33143805_22143.cpp:66:17: error: expected unqualified-id at end of input
         mod_ = m.
                 ^
0_0_33143805_22143.cpp:66:17: error: expected ';' at end of input
0_0_33143805_22143.cpp:66:17: error: expected '}' at end of input
0_0_33143805_22143.cpp: At global scope:
0_0_33143805_22143.cpp:66:17: error: expected unqualified-id at end of input
0_0_33143805_22143.cpp:66:17: error: expected '}' at end of input
0_0_33143805_22143.cpp:66:17: error: expected '}' at end of input


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-25 04:28:23, Gzip enabled