1.模块声明
.ixx文件为导入模块文件 math_operations.ixx
export module math_operations;//模块导出
//导出命名空间
export namespace math_ {//导出命名空间中函数int add(int a, int b);int sub(int a, int b);int mul(int a, int b);int div(int a, int b);
} .cppm文件…
一、寄包柜 相关代码:
#include <iostream>
#include <vector>
using namespace std;
const int N 1e5 10;
int n, q;
vector<int> a[N]; // 创建 N 个柜⼦
int main()
{cin >> n >> q;while(q--){int op, i, j, k;cin >> …