#include <iostream> using namespace std; #include<vector> int main() { int m,n; while (cin >> m >> n) { // 注意 while 处理多个 case //初始化的时候注意是m行n列 vector<vector<int>> matrix(m,vector<int>(n,0)); if(m <=0 || n<=0) continue; ...