All submissions

Nested Namespace Declaration

#include <iostream>
using namespace std;

namespace Config {
    namespace ADC { int resolution = 12; }
    namespace PWM { int frequency = 1000; }
};

int main() {
    // your code here: print resolution and frequency with their namespace paths
    using namespace Config;
    std::cout<<"ADC.resolution="<<ADC::resolution<<std::endl;
    std::cout<<"PWM.frequency="<<PWM::frequency<<std::endl;
    return 0;
}
Loading...

Input

Expected Output

ADC.resolution=12 PWM.frequency=1000