You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#include "util.hpp"
#include <limits>
#include <random>
#include <stdlib.h>
#include <algorithm>
using std::vector;
vector<uint32_t> random_arry(int n, int seed) {
std::mt19937 rng(seed);
auto max = std::numeric_limits<uint32_t>::max();
std::uniform_int_distribution<uint32_t> dist(0, max);
auto generator = [&dist, &rng](){ return dist(rng); };
vector<uint32_t> data(n);
std::generate(data.begin(), data.end(), generator);
// return value optimization will prevent copy
return data;
}
// checks if data in array is sorted in ascending order
bool is_sorted(vector<uint32_t> data) {
auto prev = 0;
for(const auto& n : data) {
}
}
is sorted is highlighted and PsDisable gives a stack traceback:
E5108: Error executing lua ...start/prosesitter/lua/prosesitter/linter/check/check.lua:45: attempt to index local 'self' (a nil value)
stack traceback:
...start/prosesitter/lua/prosesitter/linter/check/check.lua:45: in function 'cancelled_schedualled'
...start/prosesitter/lua/prosesitter/linter/check/check.lua:63: in function 'disable'
...er/start/prosesitter/lua/prosesitter/linter/on_event.lua:140: in function 'disable'
...m/site/pack/packer/start/prosesitter/lua/prosesitter.lua:50: in function 'disable'
[string ":lua"]:1: in main chunk
The text was updated successfully, but these errors were encountered:
(non minimal) example:
is sorted is highlighted and PsDisable gives a stack traceback:
The text was updated successfully, but these errors were encountered: