Main.cc: In function ‘int main()’: Main.cc:39:1: error: expected ‘}’ at end of input } ^ Main.cc:16:12: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("stick.in","r",stdin); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ Main.cc:17:12: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("stick.out","w",stdout); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~