Judge Information
Run ID: 124711
src.cpp: In function 'int main()':
src.cpp:9:14: error: 'x' was not declared in this scope
{f1>>x;a[x]++;}
^
src.cpp:11:5: error: 's' was not declared in this scope
s=s+a[i]-k;
^
src.cpp:12:9: error: 's' was not declared in this scope
f2<<s<<endl;
^
src.cpp:13:25: error: expected ')' before ';' token
f2<<*max_element(a+1;a+1+n);
^
src.cpp:13:31: error: expected ';' before ')' token
f2<<*max_element(a+1;a+1+n);
^
src.cpp:9:14: error: 'x' was not declared in this scope
{f1>>x;a[x]++;}
^
src.cpp:11:5: error: 's' was not declared in this scope
s=s+a[i]-k;
^
src.cpp:12:9: error: 's' was not declared in this scope
f2<<s<<endl;
^
src.cpp:13:25: error: expected ')' before ';' token
f2<<*max_element(a+1;a+1+n);
^
src.cpp:13:31: error: expected ';' before ')' token
f2<<*max_element(a+1;a+1+n);
^