boat.cpp: In function 'int main()':
boat.cpp:7:13: error: expected primary-expression before 'long'
#define int long long
^
boat.cpp:81:12: note: in expansion of macro 'int'
add(f[N][int(seg.size()) - 1], -1);
^~~
boat.cpp:7:13: error: expected ']' before 'long'
#define int long long
^
boat.cpp:81:12: note: in expansion of macro 'int'
add(f[N][int(seg.size()) - 1], -1);
^~~
boat.cpp:7:13: error: expected primary-expression before 'long'
#define int long long
^
boat.cpp:82:16: note: in expansion of macro 'int'
cout << f[N][int(seg.size()) - 1];
^~~
boat.cpp:7:13: error: expected ']' before 'long'
#define int long long
^
boat.cpp:82:16: note: in expansion of macro 'int'
cout << f[N][int(seg.size()) - 1];
^~~
boat.cpp:41:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("A.INP", "r", stdin);
~~~~~~~^~~~~~~~~~~~~~~~~~~~~
boat.cpp:42:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("A.OUT", "w", stdout);
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~