Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
	int a,b,c,d,e,f;
	cin>>a>>b>>c>>d>>e>>f;
	A=100*a;
	B=100*b;
	int aki,bki,cki,dki;
	aki=2900/A;
	bki=3000/B;
	cki=29/c;
	dki=30/d;
	int noudo;
	vector<int> allsolt((cki+1)*(dki+1));
	vector<int> allwater((aki+1)*(bki+1));
	for(int i=0; i<(cki+1); i++){
		for(int j=0; j<(dki+1); j++){
			allsolt.at()A*aki+B*bki;
		}
	}
	int ooki=0;
	for(int i=0; i<(cki+1)*(dki+1); i++){
	if((allsolt/allwater)>ooki && (allsolt/allwater)<E/100){
		ooki=(allsolt/allwater);
	}

	
	
	
	noudo=(c*cki+d*dki)*1.0000000000000/(a*aki+b*bki)*1.0000000000000;
      
     間違え

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'A' was not declared in this scope
    6 |         A=100*a;
      |         ^
a.cc:7:9: error: 'B' was not declared in this scope
    7 |         B=100*b;
      |         ^
a.cc:18:35: error: no matching function for call to 'std::vector<int>::at()'
   18 |                         allsolt.at()A*aki+B*bki;
      |                         ~~~~~~~~~~^~
In file included from /usr/include/c++/14/vector:66,
                 from /usr/include/c++/14/functional:64,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:53,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_vector.h:1180:7: note: candidate: 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::at(size_type) [with _Tp = int; _Alloc = std::allocator<int>; reference = int&; size_type = long unsigned int]'
 1180 |       at(size_type __n)
      |       ^~
/usr/include/c++/14/bits/stl_vector.h:1180:7: note:   candidate expects 1 argument, 0 provided
/usr/include/c++/14/bits/stl_vector.h:1199:7: note: candidate: 'std::vector<_Tp, _Alloc>::const_reference std::vector<_Tp, _Alloc>::at(size_type) const [with _Tp = int; _Alloc = std::allocator<int>; const_reference = const int&; size_type = long unsigned int]'
 1199 |       at(size_type __n) const
      |       ^~
/usr/include/c++/14/bits/stl_vector.h:1199:7: note:   candidate expects 1 argument, 0 provided
a.cc:23:20: error: no match for 'operator/' (operand types are 'std::vector<int>' and 'std::vector<int>')
   23 |         if((allsolt/allwater)>ooki && (allsolt/allwater)<E/100){
      |             ~~~~~~~^~~~~~~~~
      |             |       |
      |             |       vector<[...]>
      |             vector<[...]>
In file included from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/complex:430:5: note: candidate: 'template<class _Tp> std::complex<_Tp> std::operator/(const complex<_Tp>&, const complex<_Tp>&)'
  430 |     operator/(const complex<_Tp>& __x, const complex<_Tp>& __y)
      |     ^~~~~~~~
/usr/include/c++/14/complex:430:5: note:   template argument deduction/substitution failed:
a.cc:23:21: note:   'std::vector<int>' is not derived from 'const std::complex<_Tp>'
   23 |         if((allsolt/allwater)>ooki && (allsolt/allwater)<E/100){
      |                     ^~~~~~~~
/usr/include/c++/14/complex:439:5: note: candidate: 'template<class _Tp> std::complex<_Tp> std::operator/(const complex<_Tp>&, const _Tp&)'
  439 |     operator/(const complex<_Tp>& __x, const _Tp& __y)
      |     ^~~~~~~~
/usr/include/c++/14/complex:439:5: note:   template argument deduction/substitution failed:
a.cc:23:21: note:   'std::vector<int>' is not derived from 'const std::complex<_Tp>'
   23 |         if((allsolt/allwater)>ooki && (allsolt/allwater)<E/100){
      |                     ^~~~~~~~
/usr/include/c++/14/complex:448:5: note: candidate: 'template<class _Tp> std::complex<_Tp> std::operator/(const _Tp&, const complex<_Tp>&)'
  448 |     operator/(const _Tp& __x, const complex<_Tp>& __y)
      |     ^~~~~~~~
/usr/include/c++/14/complex:448:5: note:   template argument deduction/substitution failed:
a.cc:23:21: note:   'std::vector<int>' is not derived from 'const std::complex<_Tp>'
   23 |         if((allsolt/allwater)>ooki && (allsolt/allwater)<E/100){
      |                     ^~~~~~~~
In file included from /usr/include/c++/14/valarray:605,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:166:
/usr/include/c++/14/bits/valarray_after.h:408:5: note: candidate: 'template<class _Dom1, class _Dom2> std::_Expr<std::__detail::_BinClos<std::__divides, std::_Expr, std::_Expr, _Dom1, _Dom2>, typename std::__fun<std::__divides, typename _Dom1::value_type>::result_type> std::operator/(const _Expr<_Dom1, typename _Dom1::value_type>&, const _Expr<_Dom2, typename _Dom2::value_type>&)'
  408 |     _DEFINE_EXPR_BINARY_OPERATOR(/, struct std::__divides)
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/valarray_after.h:408:5: note:   template argument deduction/substitution failed:
a.cc:23:21: note:   'std::vector<int>' is not derived from 'const std::_Expr<_Dom1, typename _Dom1::value_type>'
   23 |         if((allsolt/allwater)>ooki && (allsolt/allwater)<E/100){
      |                     ^~~~~~~~
/usr/include/c++/14/bits/valarray_after.h:408:5: note: candidate: 'template<class _Dom> std::_Expr<std::__detail::_BinClos<std::__divides, std::_Expr, std::_Constant, _Dom, typename _Dom::value_type>, typename std::__fun<std::__divides, typename _Dom1::value_type>::result_type> std::operator/(const _Expr<_Dom1, typename _Dom1::value_type>&, const typename _Dom::value_type&)'
  408 |     _DEFINE_EXPR_BINARY_OPERATOR(/, struct std::__divides)
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/valarray_after.h:408:5: note:   template argument deduction/substitution failed:
a.cc:23:21: note:   'std::vector<int>' is not derived from 'const std::_Expr<_Dom1, typename _Dom1::value_type>'
   23 |         if((allsolt/allwater)>ooki && (allsolt/allwater)<E/100){
      |                     ^~~~~~~~
/usr/include/c++/14/bits/valarray_after.h:408:5: note: candidate: 'template<class _Dom> std::_Expr<std::__detail::_BinClos<std::__divides, std::_Constant, std::_Expr, typename _Dom::value_type, _Dom>, typename std::__fun<std::__divides, typename _Dom1::value_type>::result_type> std::operator/(const typename _Dom::value_type&, const _Expr<_Dom1, typename _Dom1::value_type>&)'
  408 |     _DEFINE_EXPR_BINARY_OPERATOR(/, struct std::__divides)
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/valarray_after.h:408:5: note:   template argument deduction/substitution failed:
a.cc:23:21: note:   'std::vector<int>' is not derived from 'const std::_Expr<_Dom1, typename _Dom1::value_type>'
   23 |         if((allsolt/allwater)>ooki && (allsolt/allwater)<E/100){
      |                     ^~~~~~~~
/usr/include/c++/14/bits/valarray_after.h:408:5: note: candidate: 'template<class _Dom> std::_Expr<std::__detail::_BinClos<std::__divides, std::_Expr, std::_ValArray, _Dom, typename _Dom::value_type>, typename std::__fun<std::__divides, typename _Dom1::value_type>::result_type> std::operator/(const _Expr<_Dom1, typename _Dom1::value_type>&, const valarray<typename _Dom::value_type>&)'
  408 |     _DEFINE_EXPR_BINARY_OPERATOR(/, struct std::__divides)
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/valarray_after.h:408:5: note:   template argument deduction/substitution failed:
a.cc:23:21: note:   'std::vector<int>' is not derived from 'const std::_Expr<_Dom1, typename _Dom1::value_type>'
   23 |         if((allsolt/allwater)>ooki && (allsolt/allwater)<E/100){
      |                     ^~~~~~~~
/usr/include/c++/14/bits/valarray_after.h:408:5: note: candidate: 'template<class _Dom> std::_Expr<std::__detail::_BinClos<std::__divides, std::_ValArray, std::_Expr, typename _Dom::value_type, _Dom>, typename std::__fun<std::__divides, typename _Dom1::value_type>::result_type> std::operator/(const valarray<typename _Dom::value_type>&, const _Expr<_Dom1, typename _Dom1::value_type>&)'
  408 |     _DEFINE_EXPR_BINARY_OPERATOR(/, struct std::__divides)
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/valarray_after.h:408:5: note:   template argument deduction/substitution failed:
a.cc:23:21: note:   'std::vector<int>' is not derived from 'const std::_Expr<_Dom1, typename _Dom1::value_type>'
   23 |         if((allsolt/allwater)>ooki && (allsolt/allwater)<E/100){
      |                     ^~~~~~~~
/usr/include/c++/14/valarray:1199:1: note: candidate: 'template<class _Tp> std::_Expr<std::__detail::_BinClos<std::__divides, std::_ValArray, std::_ValArray, _Tp, _Tp>, typename std::__fun<std::__divides, _Tp>::result_type> std::operator/(const valarray<_Tp>&, const valarray<_Tp>&)'
 1199 | _DEFINE_BINARY_OPERATOR(/, __divides)
      | ^~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/valarray:1199:1: note:   template argument deduction/substitution failed:
a.cc:23:21: note:   'std::vector<int>' is not derived from 'const std::valarray<_Tp>'
   23 |         if((allsolt/allwater)>ooki && (allsolt/allwater)<E/100){
      |                     ^~~~~~~~
/usr/include/c++/14/valarray:1199:1: note: candidate: 'template<class _Tp> std::_Expr<std::__detail::_BinClos<std::__divides, std::_ValArray, std::_Constant, _Tp, _Tp>, typename std::__fun<std::__divides, _Tp>::result_type> std::operator/(const valarray<_Tp>&, const typename valarray<_Tp>::value_type&)'
 1199 | _DEFINE_BINARY_OPERATOR(/, __divides)
      | ^~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/valarray:1199:1: note:   template argument deduction/substitution failed:
a.cc:23:21: note:   'std::vector<int>' is not derived from 'const std::valarray<_Tp>'
   23 |         if((allsolt/allwater)>ooki && (allsolt/allwater)<E/100){
      |                     ^~~~~~~~
/usr/include/c++/14/valarray:1199:1: note: candidate: 'template<class _Tp> std::_Expr<std::__detail::_BinClos<std::__divides, std::_Constant, std::_ValArray, _Tp, _Tp>, typename std::__fun<std::__divides, _Tp>::result_type> std::operator/(const typename valarray<_Tp>::value_type&, const valarray<_Tp>&)'
 1199 | _DEFINE_BINARY_OPERATOR(/, __divides)
      | ^~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/valarray:1199:1: note:   template argument deduction/substitution failed:
a.cc:23:21: note:   'std::vector<int>' is not derived from 'const std::valarray<_Tp>'
   23 |         if((allsolt/allwater)>ooki && (allsolt/allwater)<E/100){
      |                     ^~~~~~~~
a.cc:23:47: error: no match for 'operator/' (operand types are 'std::vector<int>' and 'std::vector<int>')
   23 |         if((allsolt/allwater)>ooki && (allsolt/allwater)<E/100){
      |                                        ~~~~~~~^~~~~~~~~
      |                                        |       |
      |                                        |       vector<[...]>
      |                                        vector<[...]>
/usr/include/c++/14/complex:430:5: note: candidate: 'template<class _Tp> std::complex<_Tp> std::operator/(const complex<_Tp>&, const complex<_Tp>&)'
  430 |     o