#include <iostream> using namespace std; // Create namespaces DriverA and DriverB here namespace A{ void init(){ cout << "A INIT"; } } namespace B{ void init(){ cout << "B INIT"; } } int main() { int x; cin >> x; // Call correct namespace function here if(x == 1){ A::init(); } if(x == 2){ B::init(); } return 0; }
Test Cases
Test Results
Input
1
Expected Output
A INIT