shell.cpp: In function 'long long int query(bool)':
shell.cpp:17:11: error: expected unqualified-id before 'int'
char a, int i, int j;
^~~
shell.cpp:18:24: error: 'i' was not declared in this scope
scanf("%c%d%d", &a, &i, &j);
^
shell.cpp:18:28: error: 'j' was not declared in this scope
scanf("%c%d%d", &a, &i, &j);
^
shell.cpp:21:2: error: 'lont' was not declared in this scope
lont long s;
^~~~
shell.cpp:21:2: note: suggested alternative: 'long'
lont long s;
^~~~
long
shell.cpp:25:4: error: 's' was not declared in this scope
s += DP[i][j]
^
shell.cpp:28:9: error: 's' was not declared in this scope
return s;
^
shell.cpp: In function 'void init()':
shell.cpp:7:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &N);
~~~~~^~~~~~~~~~
shell.cpp:10:9: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &A[i][j]);
~~~~~^~~~~~~~~~~~~~~~