Submission #1172045

#TimeUTC-0UsernameProblemLanguageResultExecution timeMemory
11720452025-03-22 13:02:36coolboy19521Bigger segments (IZhO19_segments)C++20
Compilation error
0 ms0 KiB
#include "bits/stdc++.h"
#define mxN 500005
#define bfS 1<<15
using namespace std;
long long pr[mxN];
int a[mxN];
inline namespace putin{
char buf[bfS];
int pos, len;
char nextChar(){
if (pos == len){
len = fread(buf, 1, bfS, stdin), pos = 0;
if (!len) return EOF;
}
return buf[pos ++];
}
int nextInt(){
int s = 1, x = 1;
char c;
while (!isdigit(c = nextChar()))
if ('-' == c) x = -1;
x *= c - '0';
while (isdigit(c = nextChar()))
x = x * 10 + c - '0';
return x;
}
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Compilation message (stderr)

segments.cpp: In function 'int main()':
segments.cpp:87:28: error: assignment of read-only reference 'sm'
   87 |                         sm = -sm;
      |                         ~~~^~~~~