注意点

输出\用\, 输出\n用\n,输出"用",输出%用%% /:除以 :转义符

AC代码

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
const int N = 100010;


int main()
{    
    cout<<"printf(\"Hello world!\\n\");"<<endl;
    cout<<"cout << \"Hello world!\" << endl;";
    return 0;
}