







Dummy is already connected/connecting. to be spammed in the console. Having only one bind to connect and change to dummy is quite convenient but the log spam is getting out of hand.













foo() will never be executed



and, or and &&, || depending on which one you want


cmake -G without anything else, it should print a list of all valid generators

cmake -G without anything else, it should print a list of all valid generators 






& and | in C++



************* Module seven.content
datasrc/seven/content.py:34:1: R0917: Too many positional arguments (7/5) (too-many-positional-arguments)
************* Module content
datasrc/content.py:34:1: R0917: Too many positional arguments (7/5) (too-many-positional-arguments)
------------------------------------------------------------------
Your code has been rated at 9.99/10 (previous run: 9.99/10, +0.00)
chat.cpp:69:53: error: array subscript -1 is outside array bounds of ‘char* [16]’ [-Werror=array-bounds=]
ppArgs[NumArgs][0] and before you check if NumArgs == RestOffset which equals to -1 https://github.com/ddnet-insta/ddnet-insta/blob/65541d2201f40779fbbf467a0396e322c3b1bcba/src/game/server/gamemodes/base_pvp/chat.cpp#L37
So you access arr[-1]










1






















#include <iostream>
#include<ctime>
using namespace std;
void pushToFront(int*& arr, int& size, const int value) {
int* newArr = new int[size + 1];
for (int i = 0; i < size; i++) {
newArr[i + 1] = arr[i];
}
delete[] arr;
arr = newArr;
arr[0] = value;
size++;
}
void generateRandom(int* arr, const int size) {
cout << "Assigning random UNIQUE values to the array" << endl;
for (int i = 0; i < size;) {
bool here = false;
int ab = rand() % size;
for (int j = 0; j < i; j++) {
if (arr[j] == ab) {
here = true;
break;
}
}
if (!here) {
arr[i] = ab;
i++;
}
}
}void insertAfter(int*& arr, int& size, const int value, const int after) {
int* newArr = new int[size + 1];
int index;
for (int i = 0; i < size; i++) {
if (arr[i] == after) {
index = i + 1;
}
}
for (int i = 0; i < index; i++) {
newArr[i] = arr[i];
}
for (int i = index; i < size; i++) {
newArr[i + 1] = arr[i];
}
newArr[index] = value;
delete[] arr;
arr = newArr;
size++;
}
void displayArray(int* arr, const int size) {
for (int i = 0; i < size; i++) {
cout << i << " - value at this index = " << arr[i] << endl;
}
cout << "Array address = " << arr << endl;
}
void pushToEnd(int*& arr, int& size, const int value) {
int* newArr = new int[size + 1];
for (int i = 0; i < size; i++) {
newArr[i] = arr[i];
}
newArr[size] = value;
delete[] arr;
arr = newArr;
size++;
}int main() {
setlocale(LC_ALL, "en");
srand(time(NULL));
while (1) {
#ifdef _WIN32
system("cls");
#else
system("clear");
#endif
cout << "A program to add your value to the random array, either at the start or at the end." << endl;
cout << "Enter the initial size of the array: ";
int size;
cin >> size;
int* arr = new int[size];
generateRandom(arr, size);
cout << "Now displaying the array!" << endl;
displayArray(arr, size);
int choice, value;
cout << "Enter where to add the value. Enter 1 to add it to the end, 0 to the start, or 2 to add it after a specific number in the array: ";
cin >> choice;
if (choice == 1) {
cout << "Enter the number to be added at the end: ";
cin >> value;
pushToEnd(arr, size, value);
}
else if (choice == 0) {
cout << "Enter the number to be added at the start: ";
cin >> value;
pushToFront(arr, size, value);
}
else if (choice == 2) {
cout << "The current array will now be displayed. You need to choose after which number you want to add your value." << endl;
cout << "Array = ";
for (int i = 0; i < size; i++) {
cout << arr[i] << "\t";
}
cout << endl;
cout << "Now select after which number you want to add your value: ";
int after;
cin >> after;
cout << "Now enter the number you want to add after " << after << " in the array: ";
cin >> value;
insertAfter(arr, size, value, after);
}
else {
cout << "Invalid input" << endl;
continue;
}
cout << "Now displaying the array!" << endl;
displayArray(arr, size);
delete[] arr;
cout << "Do you want to restart the program? (1 — yes, 0 — no): ";
int restart;
cin >> restart;
if (restart == 0) {
break;
}
}
return 0;
}



cout << "Now displaying the array!" << endl;
displayArray(arr, size);
delete[] arr;
cout << "Do you want to restart the program? (1 — yes, 0 — no): ";
int restart;
cin >> restart;
if (restart == 0) {
break;
}
}
return 0;
} 











.?

.? . or -> question?

(edited)




.? (*p). is too cumbersome)













ddnet-libs, run git submodule update --init --recursive in ddnet-master. Use Unix Makefiles


ddnet-libs, run git submodule update --init --recursive in ddnet-master. Use Unix Makefiles 
ddnet-master folderddnet-libs










which cargo (edited)




which cargo? (edited)










pacman -S pacutils

pacboy -S base-devel toolchain cmake curl ffmpeg freetype git glew glslang libpng opusfile python3 rust SDL2 spirv-tools sqlite vulkan-headers vulkan-loader wavpack x264 --noconfirm



pacman -Qi pacutils




pacboy -S toolchain cmake curl ffmpeg freetype glew glslang libpng opusfile python3 rust SDL2 spirv-tools sqlite vulkan-headers vulkan-loader wavpack x264 --noconfirm
















x86_64-pc-windows-gnu

x86_64-pc-windows-gnu if that's an option





FromEditor to ForceLoad to make usage clearer.
Closes #8262.








CServerInfo ServerInfo;
Client()->GetServerInfo(&ServerInfo);
in CGameClient::OnNewSnapshot
does not know info about community, ServerInfo.m_aCommunityId is 'none', same on ddnet, unique and any other server, community or not

CServerInfo ServerInfo;
Client()->GetServerInfo(&ServerInfo);
in CGameClient::OnNewSnapshot
does not know info about community, ServerInfo.m_aCommunityId is 'none', same on ddnet, unique and any other server, community or not GetServerInfo is based on the server info received after a server info request that is sent when connecting, it's not directly the server info of an entry in the server browser

CClient::ProcessServerInfo the UpdateServerCommunity function is called but only on one code path

got pong from current server, latency log message


CClient::ProcessServerInfo the UpdateServerCommunity function is called but only on one code path 







CClient::ProcessServerInfo the UpdateServerCommunity function is called but only on one code path UpdateServerCommunity produces 'none' community, at least in CClient::ProcessServerInfo



dbg_msg("update", "ip:'%s', cm:'%s'", Info.m_aAddress, Info.m_aCommunityId);
update: ip:'88.198.184.126:8313', cm:'none' m_aAddress is not used in UpdateServerCommunity, it uses m_aAddresses and it looks like this member is not being updated in ProcessServerInfo before calling UpdateServerCommunity
net_addr_str of each address in Info.m_aAddresses gives me unknown type 0, so i can't really print that
m_aAddresses is only set later so the community info is not updated correctly


m_aAddresses is only set later so the community info is not updated correctly
(edited)

(edited)


