foo.cpp: In function 'int main()':
foo.cpp:9:14: error: 'scanf' was not declared in this scope
foo.cpp:27:32: error: no matching function for call to 'min(int [1001], int [1001][1001])'
foo.cpp:27:32: note: candidates are:
In file included from c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/char_traits.h:41:0,
from c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/ios:41,
from c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/ostream:40,
from c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/iostream:40,
from foo.cpp:1:
c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/stl_algobase.h:187:5: note: template<class _Tp> const _Tp& std::min(const _Tp&, const _Tp&)
c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/stl_algobase.h:187:5: note: template argument deduction/substitution failed:
foo.cpp:27:32: note: deduced conflicting types for parameter 'const _Tp' ('int [1001]' and 'int [1001][1001]')
In file included from c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/char_traits.h:41:0,
from c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/ios:41,
from c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/ostream:40,
from c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/iostream:40,
from foo.cpp:1:
c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/stl_algobase.h:233:5: note: template<class _Tp, class _Compare> const _Tp& std::min(const _Tp&, const _Tp&, _Compare)
c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/stl_algobase.h:233:5: note: template argument deduction/substitution failed:
foo.cpp:27:32: note: deduced conflicting types for parameter 'const _Tp' ('int [1001]' and 'int [1001][1001]')
foo.cpp:28:37: error: no matching function for call to 'min(int [1001][1001], int [1001])'
foo.cpp:28:37: note: candidates are:
In file included from c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/char_traits.h:41:0,
from c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/ios:41,
from c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/ostream:40,
from c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/iostream:40,
from foo.cpp:1:
c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/stl_algobase.h:187:5: note: template<class _Tp> const _Tp& std::min(const _Tp&, const _Tp&)
c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/stl_algobase.h:187:5: note: template argument deduction/substitution failed:
foo.cpp:28:37: note: deduced conflicting types for parameter 'const _Tp' ('int [1001][1001]' and 'int [1001]')
In file included from c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/char_traits.h:41:0,
from c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/ios:41,
from c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/ostream:40,
from c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/iostream:40,
from foo.cpp:1:
c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/stl_algobase.h:233:5: note: template<class _Tp, class _Compare> const _Tp& std::min(const _Tp&, const _Tp&, _Compare)
c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/stl_algobase.h:233:5: note: template argument deduction/substitution failed:
foo.cpp:28:37: note: deduced conflicting types for parameter 'const _Tp' ('int [1001][1001]' and 'int [1001]')
foo.cpp:29:37: error: invalid conversion from 'const int*' to 'int' [-fpermissive]
foo.cpp:44:20: error: 'printf' was not declared in this scope