Submission #444036

# Submission time Handle Problem Language Result Execution time Memory
444036 2021-07-13T03:43:52 Z Petremol Bubble Sort 2 (JOI18_bubblesort2) C++17
Compilation error
0 ms 0 KB
#include <bits/stdc++.h>
#include "bubblesort2.h"
#define int int64_t
#define all(x) x.begin(), x.end()
#define send ios_base::sync_with_stdio(false);
#define help cin.tie(NULL)
#define inf (int)(1e17+1)
#define mod (int)(1e9+7)
#define N (int)(2e5+5)
#define fi first
#define se second
#define endl "\n"
#define eps (double)(1e-9)
#define sa cout<<"sa"<<endl
using namespace std;

vector<int> countScans(vector<int> v,vector<int> p,vector<int> x){
	//int n=v.size();
	//int q=x.size();
	vector<int> ans(q);
	


	return ans;
}

Compilation message

bubblesort2.cpp: In function 'std::vector<long int> countScans(std::vector<long int>, std::vector<long int>, std::vector<long int>)':
bubblesort2.cpp:20:18: error: 'q' was not declared in this scope
   20 |  vector<int> ans(q);
      |                  ^