Category : runtime

Hello I am trying to solve simple graph algorithms problem counting room. In this problem I am getting runtime and time limit exceeded if vector is not defined globally. Can someone tell why this is happening. Problem link – Counting rooms Accepted code – Accepted code TLE and RE showing code – Rejected code My ..

Read more

Im coding a Runtime Crypter, this is my first step : put file in program and crypt text and decode to target path Source Code : #include <iostream> #include <Windows.h> using namespace std; int main() { HANDLE hFile; HANDLE hOutput; DWORD dwReadBytes = 0; DWORD dwWritenBytes = 0; char buffer[MAX_PATH]; SIZE_T szFile; hFile = CreateFile("C:UsersSuperNovaDesktopmessage.txt", ..

Read more

Is it possible to determine the data-type to use during runtime? Let’s consider an example code like this: void myFunction(type) { new std::unordered_map<type, type> umap; } … I’m aware that I can make use of std::any to support multi-types but I just want to know if there’s any way to do the former. Thanks! Source: ..

Read more