triusis.cpp:41: warning: "task" redefined
41 | #define task "a"
|
triusis.cpp:40: note: this is the location of the previous definition
40 | #define task ""
|
triusis.cpp: In function 'void nhap()':
triusis.cpp:31:16: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
31 | if (pos==dp.size()) dp.push_back(a[i]);
| ~~~^~~~~~~~~~~
triusis.cpp: In function 'int main()':
triusis.cpp:44:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
44 | freopen(task".inp","r",stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
triusis.cpp:45:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
45 | freopen(task".out","w",stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~