/ Test /

Record Detail

Compile Error

/in/main.cpp:23:33: warning: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
    threeDmap.resize(num_colors + 1);
              ~~~~~~ ~~~~~~~~~~~^~~
/in/main.cpp:25:22: warning: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
    colVector.resize(width);
              ~~~~~~ ^~~~~
/in/main.cpp:27:19: warning: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
        colVector[i] = '.';
        ~~~~~~~~~ ^
/in/main.cpp:30:22: warning: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
    rowVector.resize(height);
              ~~~~~~ ^~~~~~
/in/main.cpp:32:19: warning: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
        rowVector[i] = colVector;
        ~~~~~~~~~ ^
/in/main.cpp:35:19: warning: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
        threeDmap[i] = rowVector;
        ~~~~~~~~~ ^
/in/main.cpp:169:21: warning: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
    TwoDMap twoDmap(height, vector<char>(width, '.'));
            ~~~~~~~ ^~~~~~
/in/main.cpp:169:42: warning: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
    TwoDMap twoDmap(height, vector<char>(width, '.'));
                            ~~~~~~       ^~~~~
/in/main.cpp:179:37: warning: implicit conversion changes signedness: 'int' to 'std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::size_type' (aka 'unsigned long') [-Wsign-conversion]
            if (validInput(mapInput[index])){
                           ~~~~~~~~ ^~~~~
/in/main.cpp:180:30: warning: implicit conversion changes signedness: 'int' to 'std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::size_type' (aka 'unsigned long') [-Wsign-conversion]
                if (mapInput[index] == '@' && startCount == 1){
                    ~~~~~~~~ ^~~~~
/in/main.cpp:181:29: warning: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
                    twoDmap[i][j] = mapInput[index];
                    ~~~~~~~ ^
/in/main.cpp:181:32: warning: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
                    twoDmap[i][j] = mapInput[index];
                    ~~~~~~~    ^
/in/main.cpp:181:46: warning: implicit conversion changes signedness: 'int' to 'std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::size_type' (aka 'unsigned long') [-Wsign-conversion]
                    twoDmap[i][j] = mapInput[index];
                                    ~~~~~~~~ ^~~~~
/in/main.cpp:186:35: warning: implicit conversion changes signedness: 'int' to 'std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::size_type' (aka 'unsigned long') [-Wsign-conversion]
                else if (mapInput[index] == '?' && endCount == 1){
                         ~~~~~~~~ ^~~~~
/in/main.cpp:187:29: warning: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
                    twoDmap[i][j] = mapInput[index];
                    ~~~~~~~ ^
/in/main.cpp:187:32: warning: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
                    twoDmap[i][j] = mapInput[index];
                    ~~~~~~~    ^
/in/main.cpp:187:46: warning: implicit conversion changes signedness: 'int' to 'std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::size_type' (aka 'unsigned long') [-Wsign-conversion]
                    twoDmap[i][j] = mapInput[index];
                                    ~~~~~~~~ ^~~~~
/in/main.cpp:193:29: warning: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
                    twoDmap[i][j] = mapInput[index];
                    ~~~~~~~ ^
/in/main.cpp:193:32: warning: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
                    twoDmap[i][j] = mapInput[index];
                    ~~~~~~~    ^
/in/main.cpp:193:46: warning: implicit conversion changes signedness: 'int' to 'std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::size_type' (aka 'unsigned long') [-Wsign-conversion]
                    twoDmap[i][j] = mapInput[index];
                                    ~~~~~~~~ ^~~~~
/in/main.cpp:208:60: warning: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
        if (temp.color == '^' && !isupper(twoDmap[temp.row - 1][temp.col])){
                                          ~~~~~~~ ~~~~~~~~~^~~
/in/main.cpp:208:70: warning: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
        if (temp.color == '^' && !isupper(twoDmap[temp.row - 1][temp.col])){
                                          ~~~~~~~               ~~~~~^~~
/in/main.cpp:212:56: warning: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
            if (temp.color != '^' && (twoDmap[temp.row - 1][temp.col]) == toupper(temp.color)){
                                      ~~~~~~~ ~~~~~~~~~^~~
/in/main.cpp:212:66: warning: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
            if (temp.color != '^' && (twoDmap[temp.row - 1][temp.col]) == toupper(temp.color)){
                                      ~~~~~~~               ~~~~~^~~
/in/main.cpp:215:64: warning: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
            if (temp.color != '^' && !isupper(twoDmap[temp.row - 1][temp.col])){
                                              ~~~~~~~ ~~~~~~~~~^~~
/in/main.cpp:215:74: warning: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
            if (temp.color != '^' && !isupper(twoDmap[temp.row - 1][temp.col])){
                                              ~~~~~~~               ~~~~~^~~
/in/main.cpp:222:56: warning: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
        if (temp.color == '^' && !isupper(twoDmap[temp.row][temp.col + 1])){
                                          ~~~~~~~ ~~~~~^~~
/in/main.cpp:222:70: warning: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
        if (temp.color == '^' && !isupper(twoDmap[temp.row][temp.col + 1])){
                                          ~~~~~~~           ~~~~~~~~~^~~
/in/main.cpp:226:52: warning: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
            if (temp.color != '^' && (twoDmap[temp.row][temp.col + 1]) == toupper(temp.color)){
                                      ~~~~~~~ ~~~~~^~~
/in/main.cpp:226:66: warning: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
            if (temp.color != '^' && (twoDmap[temp.row][temp.col + 1]) == toupper(temp.color)){
                                      ~~~~~~~           ~~~~~~~~~^~~
/in/main.cpp:229:60: warning: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
            if (temp.color != '^' && !isupper(twoDmap[temp.row][temp.col + 1])){
                                              ~~~~~~~ ~~~~~^~~
/in/main.cpp:229:74: warning: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
            if (temp.color != '^' && !isupper(twoDmap[temp.row][temp.col + 1])){
                                              ~~~~~~~           ~~~~~~~~~^~~
/in/main.cpp:236:60: warning: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
        if (temp.color == '^' && !isupper(twoDmap[temp.row + 1][temp.col])){
                                          ~~~~~~~ ~~~~~~~~~^~~
/in/main.cpp:236:70: warning: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
        if (temp.color == '^' && !isupper(twoDmap[temp.row + 1][temp.col])){
                                          ~~~~~~~               ~~~~~^~~
/in/main.cpp:240:56: warning: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
            if (temp.color != '^' && (twoDmap[temp.row + 1][temp.col]) == toupper(temp.color)){
                                      ~~~~~~~ ~~~~~~~~~^~~
/in/main.cpp:240:66: warning: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
            if (temp.color != '^' && (twoDmap[temp.row + 1][temp.col]) == toupper(temp.color)){
                                      ~~~~~~~               ~~~~~^~~
/in/main.cpp:243:64: warning: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
            if (temp.color != '^' && !isupper(twoDmap[temp.row + 1][temp.col])){
                                              ~~~~~~~ ~~~~~~~~~^~~
/in/main.cpp:243:74: warning: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
            if (temp.color != '^' && !isupper(twoDmap[temp.row + 1][temp.col])){
                                              ~~~~~~~               ~~~~~^~~
/in/main.cpp:250:56: warning: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
        if (temp.color == '^' && !isupper(twoDmap[temp.row][temp.col - 1])){
                                          ~~~~~~~ ~~~~~^~~
/in/main.cpp:250:70: warning: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
        if (temp.color == '^' && !isupper(twoDmap[temp.row][temp.col - 1])){
                                          ~~~~~~~           ~~~~~~~~~^~~
/in/main.cpp:254:52: warning: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
            if (temp.color != '^' && (twoDmap[temp.row][temp.col - 1]) == toupper(temp.color)){
                                      ~~~~~~~ ~~~~~^~~
/in/main.cpp:254:66: warning: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
            if (temp.color != '^' && (twoDmap[temp.row][temp.col - 1]) == toupper(temp.color)){
                                      ~~~~~~~           ~~~~~~~~~^~~
/in/main.cpp:257:60: warning: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
            if (temp.color != '^' && !isupper(twoDmap[temp.row][temp.col - 1])){
                                              ~~~~~~~ ~~~~~^~~
/in/main.cpp:257:74: warning: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
            if (temp.color != '^' && !isupper(twoDmap[temp.row][temp.col - 1])){
                                              ~~~~~~~           ~~~~~~~~~^~~
/in/main.cpp:279:18: warning: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
    threeDmap[0][startRow][startCol] = '@';
    ~~~~~~~~~    ^~~~~~~~
/in/main.cpp:279:28: warning: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
    threeDmap[0][startRow][startCol] = '@';
    ~~~~~~~~~              ^~~~~~~~
/in/main.cpp:295:28: warning: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
        if (((twoDmap[temp.row][temp.col] >= 97 && twoDmap[temp.row][temp.col] <= 122) || (twoDmap[temp.row][temp.col] == '^'))
              ~~~~~~~ ~~~~~^~~
/in/main.cpp:295:38: warning: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
        if (((twoDmap[temp.row][temp.col] >= 97 && twoDmap[temp.row][temp.col] <= 122) || (twoDmap[temp.row][temp.col] == '^'))
              ~~~~~~~           ~~~~~^~~
/in/main.cpp:295:65: warning: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
        if (((twoDmap[temp.row][temp.col] >= 97 && twoDmap[temp.row][temp.col] <= 122) || (twoDmap[temp.row][temp.col] == '^'))
                                                   ~~~~~~~ ~~~~~^~~
/in/main.cpp:295:75: warning: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
        if (((twoDmap[temp.row][temp.col] >= 97 && twoDmap[temp.row][temp.col] <= 122) || (twoDmap[temp.row][temp.col] == '^'))
                                                   ~~~~~~~           ~~~~~^~~
/in/main.cpp:295:105: warning: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
        if (((twoDmap[temp.row][temp.col] >= 97 && twoDmap[temp.row][temp.col] <= 122) || (twoDmap[temp.row][temp.col] == '^'))
                                                                                           ~~~~~~~ ~~~~~^~~
/in/main.cpp:295:115: warning: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
        if (((twoDmap[temp.row][temp.col] >= 97 && twoDmap[temp.row][temp.col] <= 122) || (twoDmap[temp.row][temp.col] == '^'))
                                                                                           ~~~~~~~           ~~~~~^~~
/in/main.cpp:296:30: warning: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
            && (twoDmap[temp.row][temp.col] != temp.color)){
                ~~~~~~~ ~~~~~^~~
/in/main.cpp:296:40: warning: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
            && (twoDmap[temp.row][temp.col] != temp.color)){
                ~~~~~~~           ~~~~~^~~
/in/main.cpp:298:30: warning: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
            if (twoDmap[temp.row][temp.col] == '^'){
                ~~~~~~~ ~~~~~^~~
/in/main.cpp:298:40: warning: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
            if (twoDmap[temp.row][temp.col] == '^'){
                ~~~~~~~           ~~~~~^~~
/in/main.cpp:301:47: warning: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
                if (!((threeDmap[0][nextState.row][nextState.col] >= 48 && (threeDmap[0][nextState.row][nextState.col] <= 51)) ||
                       ~~~~~~~~~    ~~~~~~~~~~^~~
/in/main.cpp:301:62: warning: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
                if (!((threeDmap[0][nextState.row][nextState.col] >= 48 && (threeDmap[0][nextState.row][nextState.col] <= 51)) ||
                       ~~~~~~~~~                   ~~~~~~~~~~^~~
/in/main.cpp:301:100: warning: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
                if (!((threeDmap[0][nextState.row][nextState.col] >= 48 && (threeDmap[0][nextState.row][nextState.col] <= 51)) ||
                                                                            ~~~~~~~~~    ~~~~~~~~~~^~~
/in/main.cpp:301:115: warning: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
                if (!((threeDmap[0][nextState.row][nextState.col] >= 48 && (threeDmap[0][nextState.row][nextState.col] <= 51)) ||
                                                                            ~~~~~~~~~                   ~~~~~~~~~~^~~
/in/main.cpp:302:47: warning: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
                      (threeDmap[0][nextState.row][nextState.col] >= 97 && (threeDmap[0][nextState.row][nextState.col] <= 122)))){
                       ~~~~~~~~~    ~~~~~~~~~~^~~
/in/main.cpp:302:62: warning: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
                      (threeDmap[0][nextState.row][nextState.col] >= 97 && (threeDmap[0][nextState.row][nextState.col] <= 122)))){
                       ~~~~~~~~~                   ~~~~~~~~~~^~~
/in/main.cpp:302:100: warning: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
                      (threeDmap[0][nextState.row][nextState.col] >= 97 && (threeDmap[0][nextState.row][nextState.col] <= 122)))){
                                                                            ~~~~~~~~~    ~~~~~~~~~~^~~
/in/main.cpp:302:115: warning: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
                      (threeDmap[0][nextState.row][nextState.col] >= 97 && (threeDmap[0][nextState.row][nextState.col] <= 122)))){
                                                                            ~~~~~~~~~                   ~~~~~~~~~~^~~
/in/main.cpp:304:39: warning: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
                    threeDmap[0][temp.row][temp.col] = temp.color;
                    ~~~~~~~~~    ~~~~~^~~
/in/main.cpp:304:49: warning: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
                    threeDmap[0][temp.row][temp.col] = temp.color;
                    ~~~~~~~~~              ~~~~~^~~
/in/main.cpp:311:47: warning: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
                char newSymbol = twoDmap[temp.row][temp.col];
                                 ~~~~~~~ ~~~~~^~~
/in/main.cpp:311:57: warning: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
                char newSymbol = twoDmap[temp.row][temp.col];
                                 ~~~~~~~           ~~~~~^~~
/in/main.cpp:315:31: warning: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
                if (threeDmap[floor][nextState.row][nextState.col] != '^' &&
                    ~~~~~~~~~ ^~~~~
/in/main.cpp:315:48: warning: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
                if (threeDmap[floor][nextState.row][nextState.col] != '^' &&
                    ~~~~~~~~~        ~~~~~~~~~~^~~
/in/main.cpp:315:63: warning: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
                if (threeDmap[floor][nextState.row][nextState.col] != '^' &&
                    ~~~~~~~~~                       ~~~~~~~~~~^~~
/in/main.cpp:316:33: warning: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned lo

Information

Submit By
Type
Submission
Problem
281 Puzzle Solver
Language
C++ (Clang++, with memory check)
Submit At
2023-09-05 05:41:26
Judged At
2023-09-05 05:41:26
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes