naan.cpp: In function 'int main()':
naan.cpp:24:20: error: 'sumN' was not declared in this scope
while (sumN < Sj){
^~~~
naan.cpp:24:20: note: suggested alternative: 'sum'
while (sumN < Sj){
^~~~
sum
naan.cpp:24:27: error: 'Sj' was not declared in this scope
while (sumN < Sj){
^~
naan.cpp:24:27: note: suggested alternative: 'j'
while (sumN < Sj){
^~
j
naan.cpp:28:20: error: 'Sj' was not declared in this scope
LL p = Sj-Nsum+V[i][t]N*t;
^~
naan.cpp:28:20: note: suggested alternative: 'j'
LL p = Sj-Nsum+V[i][t]N*t;
^~
j
naan.cpp:28:23: error: 'Nsum' was not declared in this scope
LL p = Sj-Nsum+V[i][t]N*t;
^~~~
naan.cpp:28:23: note: suggested alternative: 'sum'
LL p = Sj-Nsum+V[i][t]N*t;
^~~~
sum
naan.cpp:17:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &N, &M);
~~~~~^~~~~~~~~~~~~~~~~