Код: Выделить всё
free(): invalid pointer
/tmp/program/run.sh: line 1: 532 Aborted ./prog
Command exited with non-zero status 134
Код: Выделить всё
#include
#include
#include
using namespace std;
using std::vector;
vector cases(3);
int main() {
int n;
scanf("%d", &n);
vector shells(3);
shells[0]=0;
shells[1]=0;
shells[2]=0;
cases[0]=0;
cases[1]=0;
cases[2]=0;
for (int i=0; i
Подробнее здесь: [url]https://stackoverflow.com/questions/78551348/invalid-pointer-error-when-there-are-no-pointers[/url]