dango3.cpp: In function 'void {anonymous}::Solve(std::vector<int>, int)':
dango3.cpp:9:16: error: 'ans' was not declared in this scope; did you mean 'abs'?
9 | Answer(ans);
| ^~~
| abs
dango3.cpp: In function 'void solve(int, int)':
dango3.cpp:33:11: error: cannot convert 'std::vector<int>' to 'int'
33 | solve(v, M);
| ^
| |
| std::vector<int>
dango3.cpp:28:17: note: initializing argument 1 of 'void solve(int, int)'
28 | void solve (int N, int M){
| ~~~~^
dango3.cpp: At global scope:
dango3.cpp:6:5: warning: '{anonymous}::asa' defined but not used [-Wunused-variable]
6 | int asa = 1;
| ^~~