0_0_17964722_8999.cpp:7:1: error: 'll' does not name a type
ll a[N],vis[N];
^
0_0_17964722_8999.cpp: In function 'int main()':
0_0_17964722_8999.cpp:18:9: error: 'll' was not declared in this scope
ll ans=0;
^
0_0_17964722_8999.cpp:21:25: error: 'a' was not declared in this scope
scanf("%d",&a[i]);
^
0_0_17964722_8999.cpp:26:21: error: 'vis' was not declared in this scope
vis[num++]=i;
^
0_0_17964722_8999.cpp:30:21: error: 'ans' was not declared in this scope
ans+=(n-i+1)*(vis[0]);
^
0_0_17964722_8999.cpp:30:35: error: 'vis' was not declared in this scope
ans+=(n-i+1)*(vis[0]);
^
0_0_17964722_8999.cpp:35:17: error: 'vis' was not declared in this scope
vis[num++]=i;
^
0_0_17964722_8999.cpp:37:20: error: expected ';' before 'l'
ll l=vis[len]-vis[len-1];
^
0_0_17964722_8999.cpp:38:20: error: expected ';' before 'r'
ll r=n-i+1;
^
0_0_17964722_8999.cpp:39:17: error: 'ans' was not declared in this scope
ans+=l*r;
^
0_0_17964722_8999.cpp:39:22: error: 'l' was not declared in this scope
ans+=l*r;
^
0_0_17964722_8999.cpp:39:24: error: 'r' was not declared in this scope
ans+=l*r;
^
0_0_17964722_8999.cpp:42:25: error: 'ans' was not declared in this scope
printf("%lld\n",ans);
^
|