萌新求助 CE

P1001 A+B Problem

654179_qwq @ 2022-09-03 21:23:51

RT


#define import(s) include<s>
#define create_var(s,k) s k;
#define create_function(s,k,...) s k(...){
#define end_function }
#define add_var(s,k) {s+=k;}
#define int_input(s) scanf("%d",s)
#define int_output(s) printf("%d",s)
#include<bits/stdc++.h>

create_function(int,main)
    create_var(int,a)
    int_input(&a)
    create_var(int,b)
    int_input(&b)
    add_var(a,b)
    int_output(a)
end_function

by xfrvq @ 2022-09-03 21:26:50

@czx2009 你行末分号呢?


by Accelessar @ 2022-09-03 21:26:53

@czx2009 改成这样就好了:

#define import(s) include<s>
#define create_var(s,k) s k;
#define create_function(s,k,...) s k(...){
#define end_function }
#define add_var(s,k) {s+=k;}
#define int_input(s) scanf("%d",&s);
#define int_output(s) printf("%d",s);
#include<bits/stdc++.h>

create_function(int,main)
    create_var(int,a)
    int_input(a)
    create_var(int,b)
    int_input(b)
    add_var(a,b)
    int_output(a)
end_function

by xfrvq @ 2022-09-03 21:27:03

存心钓鱼是吧


by 654179_qwq @ 2022-09-03 21:28:53

非常感谢\small\color{white}\texttt{配合我钓鱼}


by 喵仔牛奶 @ 2022-09-03 21:31:27

@czx2009


by Over_fame @ 2022-09-03 21:31:56

%%%


by Paris_Commune @ 2022-09-03 21:42:12


by Failure_Terminator @ 2022-09-03 21:58:19


by ProgrammerVic @ 2022-09-04 11:17:36

恭喜获得整活侠称号(手动滑稽)


by 209u03 @ 2022-09-06 13:36:09

https://emojipedia-us.s3.dualstack.us-west-1.amazonaws.com/thumbs/120/apple/285/grinning-face-with-sweat_1f605.png


| 下一页