Judge Information
Run ID: 82310
src.cpp: In function 'int main()':
src.cpp:5:5: error: 'ios_base' has not been declared
ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
^
src.cpp:5:34: error: 'cin' was not declared in this scope
ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
^
src.cpp:5:45: error: 'cout' was not declared in this scope
ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
^
src.cpp:6:28: error: 'stdin' was not declared in this scope
freopen("MILK.INP","r",stdin);
^
src.cpp:6:33: error: 'freopen' was not declared in this scope
freopen("MILK.INP","r",stdin);
^
src.cpp:7:28: error: 'stdout' was not declared in this scope
freopen("MILK.OUT","w",stdout);
^
src.cpp:8:10: error: 'n' was not declared in this scope
cin>>n>>k;
^
src.cpp:8:13: error: 'k' was not declared in this scope
cin>>n>>k;
^
src.cpp:9:5: error: 'dem' was not declared in this scope
dem=0;
^
src.cpp:10:5: error: 'x' was not declared in this scope
x=0;
^
src.cpp:11:9: error: 'i' was not declared in this scope
for(i=1;i<=n;i++)
^
src.cpp:16:19: error: 'sort' was not declared in this scope
sort(a+1,a+1+n);
^
src.cpp:17:9: error: 'i' was not declared in this scope
for(i=1;i<=n;i++)
^
src.cpp:26:16: error: 'endl' was not declared in this scope
cout<<dem<<endl;
^
src.cpp:5:5: error: 'ios_base' has not been declared
ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
^
src.cpp:5:34: error: 'cin' was not declared in this scope
ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
^
src.cpp:5:45: error: 'cout' was not declared in this scope
ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
^
src.cpp:6:28: error: 'stdin' was not declared in this scope
freopen("MILK.INP","r",stdin);
^
src.cpp:6:33: error: 'freopen' was not declared in this scope
freopen("MILK.INP","r",stdin);
^
src.cpp:7:28: error: 'stdout' was not declared in this scope
freopen("MILK.OUT","w",stdout);
^
src.cpp:8:10: error: 'n' was not declared in this scope
cin>>n>>k;
^
src.cpp:8:13: error: 'k' was not declared in this scope
cin>>n>>k;
^
src.cpp:9:5: error: 'dem' was not declared in this scope
dem=0;
^
src.cpp:10:5: error: 'x' was not declared in this scope
x=0;
^
src.cpp:11:9: error: 'i' was not declared in this scope
for(i=1;i<=n;i++)
^
src.cpp:16:19: error: 'sort' was not declared in this scope
sort(a+1,a+1+n);
^
src.cpp:17:9: error: 'i' was not declared in this scope
for(i=1;i<=n;i++)
^
src.cpp:26:16: error: 'endl' was not declared in this scope
cout<<dem<<endl;
^