0_0_14037353_2794.cpp:1:2: error: 'j' does not name a type j , n , m , cnt , num , ans; ^ 0_0_14037353_2794.cpp:2:2: error: expected unqualified-id before 'while' while( cin >> n >> m && (n||m) ) ^