answer.code:16:18: error: ‘int time [405][7]’ redeclared as different kind of entity
16 | int n,m,time[N][M],memory[N][M],result_time[M],result_memory[M];
| ^
In file included from /usr/include/pthread.h:23,
from /usr/include/x86_64-linux-gnu/c++/13/bits/gthr-default.h:35,
from /usr/include/x86_64-linux-gnu/c++/13/bits/gthr.h:148,
from /usr/include/c++/13/ext/atomicity.h:35,
from /usr/include/c++/13/bits/ios_base.h:39,
from /usr/include/c++/13/ios:44,
from /usr/include/c++/13/ostream:40,
from /usr/include/c++/13/iostream:41,
from answer.code:1:
/usr/include/time.h:75:15: note: previous declaration ‘time_t time(time_t*)’
75 | extern time_t time (time_t *__timer) __THROW;
| ^~~~
answer.code: In function ‘int main()’:
answer.code:25:15: warning: pointer to a function used in arithmetic [-Wpointer-arith]
25 | time[i][j]=read(),memory[i][j]=read();
| ^
answer.code:25:18: warning: pointer to a function used in arithmetic [-Wpointer-arith]
25 | time[i][j]=read(),memory[i][j]=read();
| ^
answer.code:25:19: error: assignment of read-only location ‘*(time + (((sizetype)i) + ((sizetype)j)))’
25 | time[i][j]=read(),memory[i][j]=read();
| ~~~~~~~~~~^~~~~~~
answer.code:27:53: warning: pointer to a function used in arithmetic [-Wpointer-arith]
27 | result_time[j]=max(result_time[j],time[i][j]);
| ^
answer.code:27:56: warning: pointer to a function used in arithmetic [-Wpointer-arith]
27 | result_time[j]=max(result_time[j],time[i][j]);
| ^
answer.code:27:31: error: no matching function for call to ‘max(int&, time_t (&)(time_t*) noexcept)’
27 | result_time[j]=max(result_time[j],time[i][j]);
| ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/13/string:51,
from /usr/include/c++/13/bits/locale_classes.h:40,
from /usr/include/c++/13/bits/ios_base.h:41:
/usr/include/c++/13/bits/stl_algobase.h:257:5: note: candidate: ‘template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)’
257 | max(const _Tp& __a, const _Tp& __b)
| ^~~
/usr/include/c++/13/bits/stl_algobase.h:257:5: note: template argument deduction/substitution failed:
answer.code:27:31: note: deduced conflicting types for parameter ‘const _Tp’ (‘int’ and ‘time_t(time_t*) noexcept’ {aka ‘long int(long int*) noexcept’})
27 | result_time[j]=max(result_time[j],time[i][j]);
| ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/bits/stl_algobase.h:303:5: note: candidate: ‘template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)’
303 | max(const _Tp& __a, const _Tp& __b, _Compare __comp)
| ^~~
/usr/include/c++/13/bits/stl_algobase.h:303:5: note: template argument deduction/substitution failed:
answer.code:27:31: note: deduced conflicting types for parameter ‘const _Tp’ (‘int’ and ‘time_t(time_t*) noexcept’ {aka ‘long int(long int*) noexcept’})
27 | result_time[j]=max(result_time[j],time[i][j]);
| ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
answer.code:37:34: warning: pointer to a function used in arithmetic [-Wpointer-arith]
37 | if(result_time[j]==time[i][j]) w1[i]|=1<<3*j+1;
| ^
answer.code:37:37: warning: pointer to a function used in arithmetic [-Wpointer-arith]
37 | if(result_time[j]==time[i][j]) w1[i]|=1<<3*j+1;
| ^
answer.code:37:26: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
37 | if(result_time[j]==time[i][j]) w1[i]|=1<<3*j+1;
| ~~~~~~~~~~~~~~^~~~~~~~~~~~
answer.code:38:33: warning: pointer to a function used in arithmetic [-Wpointer-arith]
38 | if(result_time[j]<time[i][j]) w2[i]|=1<<3*j+1;
| ^
answer.code:38:36: warning: pointer to a function used in arithmetic [-Wpointer-arith]
38 | if(result_time[j]<time[i][j]) w2[i]|=1<<3*j+1;
| ^
answer.code:38:26: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
38 | if(result_time[j]<time[i][j]) w2[i]|=1<<3*j+1;
| ~~~~~~~~~~~~~~^~~~~~~~~~~