triusis.cpp:42: warning: "task" redefined
42 | #define task "a"
|
triusis.cpp:41: note: this is the location of the previous definition
41 | #define task ""
|
triusis.cpp: In function 'void nhap()':
triusis.cpp:32: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]
32 | if (pos==dp.size()) dp.push_back(a[i]);
| ~~~^~~~~~~~~~~
triusis.cpp: In function 'int main()':
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".inp","r",stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
triusis.cpp:46:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
46 | freopen(task".out","w",stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~