Judge Information
Run ID: 31166
src.cpp:3:33: error: redefinition of 'long long int n'
long long int n,i,f,j,a[1000],m,n;
^
src.cpp:3:15: note: 'long long int n' previously declared here
long long int n,i,f,j,a[1000],m,n;
^
src.cpp: In function 'int main()':
src.cpp:16:27: error: 's' was not declared in this scope
for(i=1;1<=m;i++)cin>>s>>[i];
^
src.cpp:16:31: warning: capture of variable 'i' with non-automatic storage duration
for(i=1;1<=m;i++)cin>>s>>[i];
^
src.cpp:3:17: note: 'long long int i' declared here
long long int n,i,f,j,a[1000],m,n;
^
src.cpp: In lambda function:
src.cpp:16:33: error: expected '{' before ';' token
for(i=1;1<=m;i++)cin>>s>>[i];
^
src.cpp: In function 'int main()':
src.cpp:24:15: error: 's' was not declared in this scope
if (a[j]<=s[i]-a[j]);
^
src.cpp:26:9: error: 's' was not declared in this scope
if (s[i] ==0)d++;
^
src.cpp:26:18: error: 'd' was not declared in this scope
if (s[i] ==0)d++;
^
src.cpp:29:7: error: 'tb' was not declared in this scope
cout<<tb;
^
long long int n,i,f,j,a[1000],m,n;
^
src.cpp:3:15: note: 'long long int n' previously declared here
long long int n,i,f,j,a[1000],m,n;
^
src.cpp: In function 'int main()':
src.cpp:16:27: error: 's' was not declared in this scope
for(i=1;1<=m;i++)cin>>s>>[i];
^
src.cpp:16:31: warning: capture of variable 'i' with non-automatic storage duration
for(i=1;1<=m;i++)cin>>s>>[i];
^
src.cpp:3:17: note: 'long long int i' declared here
long long int n,i,f,j,a[1000],m,n;
^
src.cpp: In lambda function:
src.cpp:16:33: error: expected '{' before ';' token
for(i=1;1<=m;i++)cin>>s>>[i];
^
src.cpp: In function 'int main()':
src.cpp:24:15: error: 's' was not declared in this scope
if (a[j]<=s[i]-a[j]);
^
src.cpp:26:9: error: 's' was not declared in this scope
if (s[i] ==0)d++;
^
src.cpp:26:18: error: 'd' was not declared in this scope
if (s[i] ==0)d++;
^
src.cpp:29:7: error: 'tb' was not declared in this scope
cout<<tb;
^