• Custom User Avatar

    I translated this to C++. Could anyone help me to publish it? It needs to Approve.

  • Custom User Avatar

    In c++ they forget to put a ";" at the end of the class initialization. It must be:

    #include <string>
    
    class Negabinary{
    public:
      static std::string ToNegabinary(int i);
      static int ToInt(std::string s); 
    };
    

    This is the only case that I cannot understand and tried to recognize which forgotten ";" there in class initialization. :joy: So please fix it.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution