#include <iostream> void update(int& a, int* b) { // Implement update logic here a = a + (*b); } int main() { int32_t x, delta; std::cin >> x >> delta; update(x,&delta); std::cout << x; // Print updated value return 0; }
Test Cases
Test Results
Input
10 4
Expected Output
14