Main.cc: In function ‘int main()’: Main.cc:29:1: error: expected ‘}’ at end of input } ^ Main.cc:7:12: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("bit.in","r",stdin); ~~~~~~~^~~~~~~~~~~~~~~~~~~~ Main.cc:8:12: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("bit.out","w",stdout); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ Main.cc:9:10: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s",s + 1); ~~~~~^~~~~~~~~~~~