kas.cpp: In function 'int main()':
kas.cpp:11:61: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
11 | #define file(name) if (fopen (name".inp", "r")) { freopen (name".inp", "r", stdin); freopen (name".out", "w", stdout); }
| ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
kas.cpp:27:5: note: in expansion of macro 'file'
27 | file("coci1617_r4_kas");
| ^~~~
kas.cpp:11:95: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
11 | #define file(name) if (fopen (name".inp", "r")) { freopen (name".inp", "r", stdin); freopen (name".out", "w", stdout); }
| ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
kas.cpp:27:5: note: in expansion of macro 'file'
27 | file("coci1617_r4_kas");
| ^~~~
kas.cpp:28:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
28 | scanf("%d", &N);
| ~~~~~^~~~~~~~~~
kas.cpp:30:39: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
30 | for (int i = 1; i <= N; ++i) scanf("%d", C + i), sumVal += C[i];
| ~~~~~^~~~~~~~~~~~~