All submissions

Same Named Variable

#include <iostream>
using namespace std;

namespace A{
    int threshold=50;
}
namespace B {
    int threshold=75;
}
// your code here: declare namespace A with int threshold=50
// your code here: declare namespace B with int threshold=75

int main() {
    cout << "A.threshold=" << A::threshold << "\n";
    cout << "B.threshold=" << B::threshold << "\n";
    return 0;
}
Loading...

Input

Expected Output

A.threshold=50 B.threshold=75