0_0_25025517_8343.cpp: In function 'int main()':
0_0_25025517_8343.cpp:3:29: error: 'a' was not declared in this scope
while(scanf("%lld%lld",&a,&b)&&(a+b))
^
0_0_25025517_8343.cpp:3:32: error: 'b' was not declared in this scope
while(scanf("%lld%lld",&a,&b)&&(a+b))
^
0_0_25025517_8343.cpp:3:33: error: 'scanf' was not declared in this scope
while(scanf("%lld%lld",&a,&b)&&(a+b))
^
0_0_25025517_8343.cpp:5:16: error: 'cnt' was not declared in this scope
memset(cnt,0,sizeof(cnt));
^
0_0_25025517_8343.cpp:5:33: error: 'memset' was not declared in this scope
memset(cnt,0,sizeof(cnt));
^
0_0_25025517_8343.cpp:6:9: error: 'LL' was not declared in this scope
LL ans = 0;
^
0_0_25025517_8343.cpp:9:16: error: expected ';' before 'x'
LL x = FindL(i), y = FindR(i);
^
0_0_25025517_8343.cpp:10:16: error: expected ';' before 'd'
LL d = max(y-x+1,0LL);
^
0_0_25025517_8343.cpp:11:16: error: 'd' was not declared in this scope
if(d)
^
0_0_25025517_8343.cpp:14:17: error: 'ans' was not declared in this scope
ans += i * d;
^
0_0_25025517_8343.cpp:27:25: error: 'ans' was not declared in this scope
printf("%lld\n",ans);
^
0_0_25025517_8343.cpp:27:28: error: 'printf' was not declared in this scope
printf("%lld\n",ans);
^
|