+ 1
What does that mean and how can I fix it?
proot info: vpid 1: terminated with signal 11 I don't know what it is my code runs but its just pop out after some task I know may be there something wrong in my code but how I can solve it and what does that mean
7 Respuestas
+ 2
Thanks for posting the code
Haven't been able to look through the code entire ly.
Something goes wrong in this line
char * ptr = (char*)malloc(10*sizeof(char));
scanf("%s",&ptr);
this is what is says in the playground
./Playground/file0.c:13:31: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'char **' [-Wformat=]
13 | printf("Your character id is %s\n ",&ptr);
| ~^ ~~~~
|
https://code.sololearn.com/ccWA58dOXohV/?ref=app
+ 1
Yes, i can. Can you give more information, what are uou trying to achieve ?
What is proof ?
Do you use Windows or Linux?
Can you show us some code ?
Could this be the case ?
|
\/
This declaration:
double F[1000][1000000];
would occupy 8 * 1000 * 1000000 bytes on a typical x86 system. This is about 7.45 GB. Chances are your system is running out of memory when trying to execute your code, which results in a segmentation fault.
0
Just from google
https://github.com/termux/proot/issues/85
quote:
You're trying to run x86/i386 program on aarch64 processor (normally Linux would fail execve with -ENOEXEC but proot lacks this check)
You need to use distro matching your processor architecture
https://stackoverflow.com/questions/12762944/segmentation-fault-11
0
Can you explain me in easy manner😅😑
I don't get it
0
I am doing a project of code with harry
I am using android mobile
And the code is
And one more thing I am using a c compiler download by play store
Could it be that it's give me error bcz of compiler
#include <stdio.h>
#include <stdlib.h>
int main(){
int i;
printf("Enter no of character in first Employee id\n");
scanf("%d",&i);
printf("Enter your character id\n");
char * ptr = (char*)malloc(10*sizeof(char));
scanf("%s",&ptr);
printf("Your character id is %s\n ",&ptr);
printf("Enter no of character in second employee id\n");
scanf("%d",&i);
printf("Enter your character id\n");
int new = (char*)realloc(ptr,i*sizeof(char));
scanf("%s",&ptr[i]);
printf("your character id is %s\n",&ptr[i]);
return 0;}
0
#include<stdio.h>
int prints[5][5];
int printu[5][5];
int prints1[5][5];
int printh[5][5];
int printm[5][5];
int printa[5][5];
void gap()
{
for(int i=0;i<5;i++)
{
for(int j=0;j<1;j++)
{
printf(" ");
}
}
}
void printconsole()
{
for(int i=0;i<5;i++)
{
gap();
for(int j=0;j<5;j++)
{
char ch=prints[i][j];
printf("%c",ch);
}
gap();
for(int j=0;j<5;j++)
{
char ch=printu[i][j];
printf("%c",ch);
}
gap();
for(int j=0;j<5;j++)
{
char ch=prints1[i][j];
printf("%c",ch);
}
gap();
for(int j=0;j<5;i++)
{
char ch=printh[i][j];
printf("%c",ch);
}
gap();
for(int j=0;j<5;j++)
{
char ch=printm[i][j];
printf("%c",ch);
}
gap();
for(int j=0;j<5;j++)
{
char ch=
- 1
Yes I know I try to comment the char* line and the program runs well
But that not the moto of the project I have to reallocate the meomery and when I use scanf after commenting the char * new meomery assign to the program
And the moto of project fails