#24431: 哪裡錯


U10909218 (unknown)


#include <iostream>

using namespace std;

int main() {

    int N;

    cin>> N;

    cout<<"Hello,"<<"N"<<endl;

    return 0;

}

#24432: Re:哪裡錯


610078 (電資意大利麵的最後希望)


 

#include <string>

using namespace std;

int main()

{

    int N;

    string N;

    //int 是整數,應該使用string格式才正確

    cin >> N;

    // "N" 輸出就會是N, 應該是直接N才對

    cout << "Hello,"<< "N" << endl;

    //你的hello, 後面要有一個空格

    //你的h應該要小寫

    cout << "hello, " << N << endl;

    return 0;

}