#24906: 哪裡錯?ಥ‿ಥ


yqiu9610@gmail.com (YQIU)

學校 : 不指定學校
編號 : 144072
來源 : [39.8.161.105]
最後登入時間 :
2022-01-29 15:53:34
a001. 哈囉 -- Brian Kernighan | From: [110.30.144.130] | 發表日期 : 2021-04-04 13:41

#include<iostream>

#include<stdlib.h>

#include<string>

int main(int argc,char *argv[])

{

string a;

cin>>a;

cout<<"hello,"<<a<<endl;

system("PAUSE");

return 0;

}

 

 
#24907: Re:哪裡錯?ಥ‿ಥ


fire5386 (becaidorz)

學校 : 國立清華大學
編號 : 115822
來源 : [59.115.180.44]
最後登入時間 :
2024-05-03 16:46:17
a001. 哈囉 -- Brian Kernighan | From: [61.230.25.182] | 發表日期 : 2021-04-04 14:39

zerojudge 不能使用system相關的function喔!

 
#25989: Re:哪裡錯?ಥ‿ಥ


vic20050418@gmail.com (Wen Vic)

學校 : 國立臺灣科技大學
編號 : 153262
來源 : [114.136.159.95]
最後登入時間 :
2023-07-29 13:10:41
a001. 哈囉 -- Brian Kernighan | From: [114.136.189.236] | 發表日期 : 2021-07-09 17:16

#include

#include

#include

int main(int argc,char *argv[])

{

string a;

cin>>a;

cout<<"hello,"<<a<<endl;

system("PAUSE");

return 0;

}

 


,後面少了空格

 
ZeroJudge Forum