Your ride is here~晕死#include #include int count(long *p,char temp[]){int len=strlen(temp)-1;for(int i=0;i Run 1:Execution error:Your program (`ride') exited with signal#11 (segmentation violation [maybe caused by accessing memory out ofbounds,arr

来源:学生作业帮助网 编辑:作业帮 时间:2024/11/16 02:24:14
Your ride is here~晕死#include #include int count(long *p,char temp[]){int len=strlen(temp)-1;for(int i=0;i Run 1:Execution error:Your program (`ride') exited with signal#11 (segmentation violation [maybe caused by accessing memory out ofbounds,arr
xSkAWnI

Your ride is here~晕死#include #include int count(long *p,char temp[]){int len=strlen(temp)-1;for(int i=0;i Run 1:Execution error:Your program (`ride') exited with signal#11 (segmentation violation [maybe caused by accessing memory out ofbounds,arr
Your ride is here~晕死
#include
#include
int count(long *p,char temp[]){
int len=strlen(temp)-1;
for(int i=0;i Run 1:Execution error:Your program (`ride') exited with signal
#11 (segmentation violation [maybe caused by accessing memory out of
bounds,array indexing out of bounds,using a bad pointer (failed
open(),failed malloc),or going over the maximum specified memory
limit]).The program ran for 0.004 CPU seconds before the signal.
------ Data for Run 1 ------
COMETQ
HVNGAT
----------------------------
如此令人伤心的结果
md
加码了
快来回答啊

Your ride is here~晕死#include #include int count(long *p,char temp[]){int len=strlen(temp)-1;for(int i=0;i Run 1:Execution error:Your program (`ride') exited with signal#11 (segmentation violation [maybe caused by accessing memory out ofbounds,arr
你的函数应该改成这样
long count(char* temp)
{
int re=1;
int len=strlen(temp)-1;
for(int i=0;i