0_0_20506670_19630.cpp:11:2: note: #pragma message:
#include<iostream>
#include<cstdio>
#include<memory.h>
#include<string>
#include<string.h>
#include<cmath>
using namespace std;
const int MAXN=50000+10;
int n,m;int t;string str;
int a[MAXN];
")
^
0_0_20506670_19630.cpp:22:2: note: #pragma message:
inline int lowbit(int k){
return k&-k;
}
inline void addd(int aa,int bb){
while(aa<MAXN){
a[aa]+=bb;
aa+=lowbit(aa);
}
}
inline int sum(int k){
")
^
0_0_20506670_19630.cpp:33:2: note: #pragma message:
int re=0;
while(k){
re+=a[k];
k-=lowbit(k);
}
return re;
}
inline int summ(int aa,int bb){
return sum(bb)-sum(aa-1);
}
")
^
0_0_20506670_19630.cpp:44:2: note: #pragma message:
int main()
{
ios::sync_with_stdio(0);
cin>>t;int cases=1;
while(t--){
cout<<"Case "<<cases++<<":"<<endl;
memset(a,0,sizeof(a));
cin>>n>>m;
cin>>str;
for(int i=0;i<n-2;i++){
")
^
0_0_20506670_19630.cpp:55:2: note: #pragma message:
if(str[i]=='w'&&str[i+1]=='b'&&str[i+2]=='w'){
addd(i+2,1);
i++;
}
}
for(int i=0;i<m;i++){
int c,d,e;cin>>c;
if(!c){
cin>>d>>e;
if(e<d)swap(e,d);
")
^
0_0_20506670_19630.cpp:66:2: note: #pragma message:
if(e-d<2){
cout<<0<<endl;
continue;
}
cout<<sum(e)-sum(d+1)<<endl;
continue;
}
else {
cin>>d;char x;cin>>x;
if(x==str[d])continue;
")
^
0_0_20506670_19630.cpp:77:2: note: #pragma message:
str[d]=x;
for(int j=d;j<=d+2;j++){
if(j>=2&&j<n)if(summ(j,j))addd(j,-1);
}
for(int j=d;j<=d+2;j++){
if(j>=2&&j<n)if(str[j-2]=='w'&&str[j-1]=='b'&&str[j]=='w')addd(j,1);
}
}
}
}
")
^
0_0_20506670_19630.cpp:80:2: note: #pragma message:
return 0;
}
")
^
GCC4.9.2/bin/../lib/gcc/x86_64-w64-mingw32/4.9.2/../../../../x86_64-w64-mingw32/lib/../lib\libmingw32.a(lib64_libmingw32_a-crt0_c.o):crt0_c.c:(.text.startup+0x25): undefined reference to `WinMain'
collect2.exe: error: ld returned 1 exit status
|