palinilap.cpp:13:32: error: 'long long int kill [2][100009]' redeclared as different kind of entity
13 | ll n,Hash[N][2],pw[N],kill[2][N],creat[N][26],ans;
| ^
In file included from /usr/include/c++/10/csignal:42,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:43,
from palinilap.cpp:1:
/usr/include/signal.h:112:12: note: previous declaration 'int kill(__pid_t, int)'
112 | extern int kill (__pid_t __pid, int __sig) __THROW;
| ^~~~
palinilap.cpp: In function 'int main()':
palinilap.cpp:60:19: warning: pointer to a function used in arithmetic [-Wpointer-arith]
60 | kill[0][i]++; kill[0][i - rad]--;
| ^
palinilap.cpp:60:22: warning: pointer to a function used in arithmetic [-Wpointer-arith]
60 | kill[0][i]++; kill[0][i - rad]--;
| ^
palinilap.cpp:60:22: warning: ISO C++ forbids incrementing a pointer of type 'int (*)(__pid_t, int) noexcept' {aka 'int (*)(int, int) noexcept'} [-Wpointer-arith]
60 | kill[0][i]++; kill[0][i - rad]--;
| ~~~~~~~~~^
palinilap.cpp:60:22: error: lvalue required as increment operand
60 | kill[0][i]++; kill[0][i - rad]--;
| ^
palinilap.cpp:60:33: warning: pointer to a function used in arithmetic [-Wpointer-arith]
60 | kill[0][i]++; kill[0][i - rad]--;
| ^
palinilap.cpp:60:42: warning: pointer to a function used in arithmetic [-Wpointer-arith]
60 | kill[0][i]++; kill[0][i - rad]--;
| ^
palinilap.cpp:60:42: warning: ISO C++ forbids decrementing a pointer of type 'int (*)(__pid_t, int) noexcept' {aka 'int (*)(int, int) noexcept'} [-Wpointer-arith]
60 | kill[0][i]++; kill[0][i - rad]--;
| ~~~~~~~~~~~~~~~^
palinilap.cpp:60:42: error: lvalue required as decrement operand
60 | kill[0][i]++; kill[0][i - rad]--;
| ^
palinilap.cpp:61:19: warning: pointer to a function used in arithmetic [-Wpointer-arith]
61 | kill[1][j]++; kill[1][j + rad]--;
| ^
palinilap.cpp:61:22: warning: pointer to a function used in arithmetic [-Wpointer-arith]
61 | kill[1][j]++; kill[1][j + rad]--;
| ^
palinilap.cpp:61:22: warning: ISO C++ forbids incrementing a pointer of type 'int (*)(__pid_t, int) noexcept' {aka 'int (*)(int, int) noexcept'} [-Wpointer-arith]
61 | kill[1][j]++; kill[1][j + rad]--;
| ~~~~~~~~~^
palinilap.cpp:61:22: error: lvalue required as increment operand
61 | kill[1][j]++; kill[1][j + rad]--;
| ^
palinilap.cpp:61:33: warning: pointer to a function used in arithmetic [-Wpointer-arith]
61 | kill[1][j]++; kill[1][j + rad]--;
| ^
palinilap.cpp:61:42: warning: pointer to a function used in arithmetic [-Wpointer-arith]
61 | kill[1][j]++; kill[1][j + rad]--;
| ^
palinilap.cpp:61:42: warning: ISO C++ forbids decrementing a pointer of type 'int (*)(__pid_t, int) noexcept' {aka 'int (*)(int, int) noexcept'} [-Wpointer-arith]
61 | kill[1][j]++; kill[1][j + rad]--;
| ~~~~~~~~~~~~~~~^
palinilap.cpp:61:42: error: lvalue required as decrement operand
61 | kill[1][j]++; kill[1][j + rad]--;
| ^
palinilap.cpp:76:37: warning: pointer to a function used in arithmetic [-Wpointer-arith]
76 | for (ll i = 2;i <= n;i++) kill[1][i] += kill[1][i - 1];
| ^
palinilap.cpp:76:40: warning: pointer to a function used in arithmetic [-Wpointer-arith]
76 | for (ll i = 2;i <= n;i++) kill[1][i] += kill[1][i - 1];
| ^
palinilap.cpp:76:51: warning: pointer to a function used in arithmetic [-Wpointer-arith]
76 | for (ll i = 2;i <= n;i++) kill[1][i] += kill[1][i - 1];
| ^
palinilap.cpp:76:58: warning: pointer to a function used in arithmetic [-Wpointer-arith]
76 | for (ll i = 2;i <= n;i++) kill[1][i] += kill[1][i - 1];
| ^
cc1plus: warning: pointer to a function used in arithmetic [-Wpointer-arith]
palinilap.cpp:76:42: error: invalid operands of types 'int(__pid_t, int) noexcept' {aka 'int(int, int) noexcept'} and 'int (*)(__pid_t, int) noexcept' {aka 'int (*)(int, int) noexcept'} to binary 'operator+'
76 | for (ll i = 2;i <= n;i++) kill[1][i] += kill[1][i - 1];
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~~
palinilap.cpp:76:42: note: in evaluation of 'operator+=(int(__pid_t, int) noexcept {aka int(int, int) noexcept}, int (*)(__pid_t, int) noexcept {aka int (*)(int, int) noexcept})'
palinilap.cpp:78:37: warning: pointer to a function used in arithmetic [-Wpointer-arith]
78 | for (ll i = 2;i <= n;i++) kill[1][i] += kill[1][i - 1];
| ^
palinilap.cpp:78:40: warning: pointer to a function used in arithmetic [-Wpointer-arith]
78 | for (ll i = 2;i <= n;i++) kill[1][i] += kill[1][i - 1];
| ^
palinilap.cpp:78:51: warning: pointer to a function used in arithmetic [-Wpointer-arith]
78 | for (ll i = 2;i <= n;i++) kill[1][i] += kill[1][i - 1];
| ^
palinilap.cpp:78:58: warning: pointer to a function used in arithmetic [-Wpointer-arith]
78 | for (ll i = 2;i <= n;i++) kill[1][i] += kill[1][i - 1];
| ^
cc1plus: warning: pointer to a function used in arithmetic [-Wpointer-arith]
palinilap.cpp:78:42: error: invalid operands of types 'int(__pid_t, int) noexcept' {aka 'int(int, int) noexcept'} and 'int (*)(__pid_t, int) noexcept' {aka 'int (*)(int, int) noexcept'} to binary 'operator+'
78 | for (ll i = 2;i <= n;i++) kill[1][i] += kill[1][i - 1];
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~~
palinilap.cpp:78:42: note: in evaluation of 'operator+=(int(__pid_t, int) noexcept {aka int(int, int) noexcept}, int (*)(__pid_t, int) noexcept {aka int (*)(int, int) noexcept})'
palinilap.cpp:80:40: warning: pointer to a function used in arithmetic [-Wpointer-arith]
80 | for (ll i = n - 1;i > 0;i--) kill[0][i] += kill[0][i + 1];
| ^
palinilap.cpp:80:43: warning: pointer to a function used in arithmetic [-Wpointer-arith]
80 | for (ll i = n - 1;i > 0;i--) kill[0][i] += kill[0][i + 1];
| ^
palinilap.cpp:80:54: warning: pointer to a function used in arithmetic [-Wpointer-arith]
80 | for (ll i = n - 1;i > 0;i--) kill[0][i] += kill[0][i + 1];
| ^
palinilap.cpp:80:61: warning: pointer to a function used in arithmetic [-Wpointer-arith]
80 | for (ll i = n - 1;i > 0;i--) kill[0][i] += kill[0][i + 1];
| ^
cc1plus: warning: pointer to a function used in arithmetic [-Wpointer-arith]
palinilap.cpp:80:45: error: invalid operands of types 'int(__pid_t, int) noexcept' {aka 'int(int, int) noexcept'} and 'int (*)(__pid_t, int) noexcept' {aka 'int (*)(int, int) noexcept'} to binary 'operator+'
80 | for (ll i = n - 1;i > 0;i--) kill[0][i] += kill[0][i + 1];
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~~
palinilap.cpp:80:45: note: in evaluation of 'operator+=(int(__pid_t, int) noexcept {aka int(int, int) noexcept}, int (*)(__pid_t, int) noexcept {aka int (*)(int, int) noexcept})'
palinilap.cpp:82:40: warning: pointer to a function used in arithmetic [-Wpointer-arith]
82 | for (ll i = n - 1;i > 0;i--) kill[0][i] += kill[0][i + 1];
| ^
palinilap.cpp:82:43: warning: pointer to a function used in arithmetic [-Wpointer-arith]
82 | for (ll i = n - 1;i > 0;i--) kill[0][i] += kill[0][i + 1];
| ^
palinilap.cpp:82:54: warning: pointer to a function used in arithmetic [-Wpointer-arith]
82 | for (ll i = n - 1;i > 0;i--) kill[0][i] += kill[0][i + 1];
| ^
palinilap.cpp:82:61: warning: pointer to a function used in arithmetic [-Wpointer-arith]
82 | for (ll i = n - 1;i > 0;i--) kill[0][i] += kill[0][i + 1];
| ^
cc1plus: warning: pointer to a function used in arithmetic [-Wpointer-arith]
palinilap.cpp:82:45: error: invalid operands of types 'int(__pid_t, int) noexcept' {aka 'int(int, int) noexcept'} and 'int (*)(__pid_t, int) noexcept' {aka 'int (*)(int, int) noexcept'} to binary 'operator+'
82 | for (ll i = n - 1;i > 0;i--) kill[0][i] += kill[0][i + 1];
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~~
palinilap.cpp:82:45: note: in evaluation of 'operator+=(int(__pid_t, int) noexcept {aka int(int, int) noexcept}, int (*)(__pid_t, int) noexcept {aka int (*)(int, int) noexcept})'
palinilap.cpp:86:23: warning: pointer to a function used in arithmetic [-Wpointer-arith]
86 | ll kq = kill[0][i + 1] + kill[1][i - 1],mx = 0;
| ^
palinilap.cpp:86:30: warning: pointer to a function used in arithmetic [-Wpointer-arith]
86 | ll kq = kill[0][i + 1] + kill[1][i - 1],mx = 0;
| ^
cc1plus: warning: pointer to a function used in arithmetic [-Wpointer-arith]
palinilap.cpp:86:40: warning: pointer to a function used in arithmetic [-Wpointer-arith]
86 | ll kq = kill[0][i + 1] + kill[1][i - 1],mx = 0;
| ^
palinilap.cpp:86:47: warning: pointer to a function used in arithmetic [-Wpointer-arith]
86 | ll kq = kill[0][i + 1] + kill[1][i - 1],mx = 0;
| ^
cc1plus: warning: pointer to a function used in arithmetic [-Wpointer-arith]
palinilap.cpp:86:32: error: invalid operands of types 'int(__pid_t, int) noexcept' {aka 'int(int, int) noexcept'} and 'int(__pid_t, int) noexcept' {aka 'int(int, int) noexcept'} to binary 'operator+'
86 | ll kq = kill[0][i + 1] + kill[1][i - 1],mx = 0;
| ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~
| | |
| | int(__pid_t, int) noexcept {aka int(int, int) noexcept}
| int(__pid_t, int) noexcept {aka int(int, int) noexcept}
palinilap.cpp:87:35: error: 'mx' was not declared in this scope
87 | for (ll j = 0;j < 26;j++) mx = max(mx,creat[i][j]);
| ^~
palinilap.cpp:88:28: error: 'mx' was not declared in this scope
88 | ans = max(ans,kq + mx + 1); //cout<<i<<" "<<kq + mx<<"\n";
| ^~
palinilap.cpp:41:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
41 | freopen(task".inp","r",stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~