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