Your ride is here~晕死
问题描述:
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
加码了
快来回答啊
答
你的函数应该改成这样
long count(char* temp)
{
int re=1;
int len=strlen(temp)-1;
for(int i=0;i