#include <iostream>
// x is passed by reference so changes affect the caller
void update(int& x, int delta) {
x += delta;
}
int main() {
int32_t x, delta;
std::cin >> x >> delta;
update(x, delta);
std::cout << x;
return 0;
}
Explanation & Logic Summary:
Firmware Relevance & Real-World Context:
Input
10 4
Expected Output
14