# include <bits/stdc++.h>
# define pb push_back
# define ff first
# define ss second
# define nl "\n"
# define sz(x) ((int)(x).size())
# define deb(x) cerr << #x << " = " << x << endl;
typedef long long ll;
typedef unsigned long long ull;
typedef long double ld;
const ll maxn = 2e5 + 25;
const ll inf = 2e9 + 0;
const ll mod = 998244353;
const ll dx[] = {-1, 1, 0, 0};
const ll dy[] = {0, 0, -1, 1};
using namespace std;
void ma1n (/* SABR */)
{
ll n, m;
cin >> n >> m;
pair <ll, ll> p[n + 3];
for (ll i = 1; i <= n; ++i)
{
cin >> p[i].ff;
}
for (ll i = 1; i <= n; ++i)
{
cin >> p[i].ss;
}
cout << p[i].ff * m << nl;
}
int main()
{
ios::sync_with_stdio(false);
cin.tie(0); cout.tie(0);
// freopen("angry.in", "r", stdin);
// freopen("angry.out", "w", stdout);
int ttt = 1;
// cin >> ttt;
for (int test = 1; test <= ttt; ++test)
{
// cout << "Case " << test << ":" << ' ';
ma1n();
}
return 0;
}
Compilation message
Main.cpp: In function 'void ma1n()':
Main.cpp:35:12: error: 'i' was not declared in this scope
35 | cout << p[i].ff * m << nl;
| ^