Skip to content

if(n==0){//do not work #29

Description

@9033

get 0 to Bigint n from cin.
but n==0 is not true.
code is below.

int main() {
    Dodecahedron::Bigint n;
    while(cin >> n){
        //if(Dodecahedron::to_string(n)=="0"){//ok
        //if(n==n*0){//ok
        if(n==0){//do not work
            break;
        }
        cout << n << "\n";
    }
    return 0;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions