segmentation-fault tag

5 questions


1 answers
103 views
0
C Language Sequencing Error Question

// C language#include <stdio.h>#include <stdlib.h>#include <time.h>int main(){ int ArrRoom[10] = {0,}; srand(time(NULL)); For (inti = 0; i < 10; i++) // Enter a random number from...

2 years ago

1 answers
102 views
0
What is segmentation fault?

There are 3 things I'm curious about.

2 years ago

1 answers
102 views
0
Dev C Segmentation Error Question

I just started coding.I haven't been able to input a string and print it out yet, so I was going to try DevCI created the code and entered it. But the launcher didn't respondI turned on the debugging ...

2 years ago

1 answers
90 views
0
Exception thrown: read access violation. Head was nullptr.

typedef struct node { int value; struct node* next;} } node;int ll_has_cycle(node* first) { node* head = first; while (head->next) { head = head->next; if (head == first) return 1; } return ...


1 answers
72 views
0
C++ Segmentation fault Exception Question.

The first code is as follows:#include <iostream>#include <vector>#include <algorithm>using namespace std;void dfs(int x, int m, bool *visited, vector<vector<int>> &g)...

2 years ago

© 2024 OneMinuteCode. All rights reserved.