0_0_37842013_32029.cpp: In function 'void solve()':
0_0_37842013_32029.cpp:51:5: error: expected initializer before 'int'
int m = sqrt(n);
^
0_0_37842013_32029.cpp:53:38: error: 'm' was not declared in this scope
for (int j = i + 1; j <= i + m && j <= n; ++j) {
^
0_0_37842013_32029.cpp:54:13: error: 'tmp' was not declared in this scope
tmp = (j - i) * abs(p[j] - p[i]);
^
|