Skip to content

Got these errors #5

@nyngwang

Description

@nyngwang
✘:130 ~/GitHub/uva-tool % chmod +x install.sh                                                                                                                                            13:32:24
✔ ~/GitHub/uva-tool %                                                                                                                                                                    13:32:28
✔ ~/GitHub/uva-tool % ./install.sh                                                                                                                                                       13:32:32
src/uva-tool.cpp:94:26: error: unknown type name 'pid_num_cvs'
            ifstream fp (pid_num_cvs);
                         ^
src/uva-tool.cpp:94:25: warning: parentheses were disambiguated as a function declaration [-Wvexing-parse]
            ifstream fp (pid_num_cvs);
                        ^~~~~~~~~~~~~
src/uva-tool.cpp:94:26: note: add a pair of parentheses to declare a variable
            ifstream fp (pid_num_cvs);
                         ^
                         (
src/uva-tool.cpp:97:53: error: use of undeclared identifier 'pid_num_cvs'
                cerr << "Unable to open file : " << pid_num_cvs << "\n";
                                                    ^
src/uva-tool.cpp:225:40: warning: implicit conversion changes signedness: 'int' to 'nlohmann::basic_json::size_type' (aka 'unsigned long') [-Wsign-conversion]
                sid (json_subs["subs"][i][0]);
                     ~~~~~~~~~         ^
src/uva-tool.cpp:226:49: warning: implicit conversion changes signedness: 'int' to 'nlohmann::basic_json::size_type' (aka 'unsigned long') [-Wsign-conversion]
                problem_name (json_subs["subs"][i][1]);
                              ~~~~~~~~~         ^
src/uva-tool.cpp:227:46: warning: implicit conversion changes signedness: 'int' to 'nlohmann::basic_json::size_type' (aka 'unsigned long') [-Wsign-conversion]
                verdict ( (json_subs["subs"][i][2]) );
                           ~~~~~~~~~         ^
src/uva-tool.cpp:228:69: warning: implicit conversion changes signedness: 'int' to 'nlohmann::basic_json::size_type' (aka 'unsigned long') [-Wsign-conversion]
                runtime (json_subs["subs"][i][3], json_subs["subs"][i][2]);
                                                  ~~~~~~~~~         ^
src/uva-tool.cpp:228:44: warning: implicit conversion changes signedness: 'int' to 'nlohmann::basic_json::size_type' (aka 'unsigned long') [-Wsign-conversion]
                runtime (json_subs["subs"][i][3], json_subs["subs"][i][2]);
                         ~~~~~~~~~         ^
src/uva-tool.cpp:229:45: warning: implicit conversion changes signedness: 'int' to 'nlohmann::basic_json::size_type' (aka 'unsigned long') [-Wsign-conversion]
                uva_rank (json_subs["subs"][i][6]);
                          ~~~~~~~~~         ^
src/uva-tool.cpp:230:45: warning: implicit conversion changes signedness: 'int' to 'nlohmann::basic_json::size_type' (aka 'unsigned long') [-Wsign-conversion]
                language (json_subs["subs"][i][5]);
                          ~~~~~~~~~         ^
src/uva-tool.cpp:231:41: warning: implicit conversion changes signedness: 'int' to 'nlohmann::basic_json::size_type' (aka 'unsigned long') [-Wsign-conversion]
                date (json_subs["subs"][i][4]);
                      ~~~~~~~~~         ^
src/uva-tool.cpp:240:11: error: use of undeclared identifier 'curlfunc'
    cmd = curlfunc + " --http1.1 https://uhunt.onlinejudge.org/api/uname2uid/" + \
          ^
src/uva-tool.cpp:241:18: error: use of undeclared identifier 'err'
          name + err;
                 ^
src/uva-tool.cpp:250:11: error: use of undeclared identifier 'curlfunc'
    cmd = curlfunc + " --http1.1 https://uhunt.onlinejudge.org/api/subs-user-last/" + \
          ^
src/uva-tool.cpp:251:31: error: use of undeclared identifier 'err'
          uid + "/" + range + err;
                              ^
src/uva-tool.cpp:259:29: error: use of undeclared identifier 'cookie_file'; did you mean 'cookie_jar'?
        string cookie_jar = cookie_file;
                            ^~~~~~~~~~~
                            cookie_jar
src/uva-tool.cpp:259:16: note: 'cookie_jar' declared here
        string cookie_jar = cookie_file;
               ^
src/uva-tool.cpp:263:26: error: use of undeclared identifier 'curlfunc'
            string cmd = curlfunc + " -f -L -s http://onlinejudge.org |";
                         ^
src/uva-tool.cpp:330:26: error: use of undeclared identifier 'curlfunc'
            string cmd = curlfunc + " -X POST -f -L -s --compressed ";
                         ^
src/uva-tool.cpp:346:26: error: use of undeclared identifier 'curlfunc'
            string cmd = curlfunc + \
                         ^
9 warnings and 10 errors generated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions