elephants.cpp: In function 'int32_t main()':
elephants.cpp:54:16: error: cannot convert 'std::vector<int>' to 'int*'
54 | init(N, L, X);
| ^
| |
| std::vector<int>
elephants.cpp:11:29: note: initializing argument 3 of 'void init(int, int, int*)'
11 | void init(int N, int L, int X[])
| ~~~~^~~
elephants.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(name".INP", "r", stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
elephants.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(name".OUT", "w", stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~