我不知道問題出在哪裏。代碼編譯沒有任何錯誤,但運行它時,它要求我輸入一個數字,但是當我在輸入後輸入時崩潰。有誰可以告訴我問題在哪裏?我認爲存在一些內存問題,但我無法弄清楚在哪裏。提前致謝。 #include <stdio.h>
#include <stdlib.h>
int main(void)
{
int n[16];
long long a;
printf
我有這樣的代碼的結束和編譯器給我的下一個錯誤: functions.c:12:1: warning: control reaches end of non-void function [-Wreturn-type] } 代碼: #include <stdlib.h>
#include <time.h>
int myrand(){
srand(time(NULL));
i