#defime CODE1
// #define CODE2
// #define CODE3

#ifdef CODE1
int main(){
...
}
#endif

#ifdef CODE2
...
#endif