Judge Information

Run ID: 31193
src.cpp:3:1: error: 'I' does not name a type
I
^
src.cpp: In function 'int main()':
src.cpp:9:1: error: 'ios_base' has not been declared
ios_base::sync_with_stdio(0);cin.tie (0); cout.tie(0); freopen("ATM. INP", "r", stdin); freopen("ATM. OUT", "w", stdout); cin>>n>>m; d=0; for(i=0;i<n; i++)
^
src.cpp:9:30: error: 'cin' was not declared in this scope
ios_base::sync_with_stdio(0);cin.tie (0); cout.tie(0); freopen("ATM. INP", "r", stdin); freopen("ATM. OUT", "w", stdout); cin>>n>>m; d=0; for(i=0;i<n; i++)
^
src.cpp:9:30: note: suggested alternative:
In file included from C:/Debug/compiler/gcc/lib/gcc/mingw32/4.9.2/include/c++/mingw32/bits/stdc++.h:74:0,
from src.cpp:1:
C:/Debug/compiler/gcc/lib/gcc/mingw32/4.9.2/include/c++/iostream:60:18: note: 'std::cin'
extern istream cin; /// Linked to standard input
^
src.cpp:9:43: error: 'cout' was not declared in this scope
ios_base::sync_with_stdio(0);cin.tie (0); cout.tie(0); freopen("ATM. INP", "r", stdin); freopen("ATM. OUT", "w", stdout); cin>>n>>m; d=0; for(i=0;i<n; i++)
^
src.cpp:9:43: note: suggested alternative:
In file included from C:/Debug/compiler/gcc/lib/gcc/mingw32/4.9.2/include/c++/mingw32/bits/stdc++.h:74:0,
from src.cpp:1:
C:/Debug/compiler/gcc/lib/gcc/mingw32/4.9.2/include/c++/iostream:61:18: note: 'std::cout'
extern ostream cout; /// Linked to standard output
^
src.cpp:15:11: error: 'sort' was not declared in this scope
sort(a,a+n);
^
src.cpp:15:11: note: suggested alternative:
In file included from C:/Debug/compiler/gcc/lib/gcc/mingw32/4.9.2/include/c++/algorithm:62:0,
from C:/Debug/compiler/gcc/lib/gcc/mingw32/4.9.2/include/c++/mingw32/bits/stdc++.h:64,
from src.cpp:1:
C:/Debug/compiler/gcc/lib/gcc/mingw32/4.9.2/include/c++/bits/stl_algo.h:4705:5: note: 'std::sort'
sort(_RandomAccessIterator __first, _RandomAccessIterator __last,
^
src.cpp:27:1: error: 'cost' was not declared in this scope
cost<<d;
^
src.cpp:27:8: error: expected '}' at end of input
cost<<d;
^
src.cpp:27:8: error: expected '}' at end of input