/ Test /

Record Detail

Memory Exceeded

/in/main.cpp:173:28: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion]
    int**  use = new int* [sN];
                 ~~~       ^~
/in/main.cpp:174:28: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion]
    char** map = new char*[sN];
                 ~~~       ^~
/in/main.cpp:176:27: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion]
        use[i] = new int [sM];
                 ~~~      ^~
/in/main.cpp:177:27: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion]
        map[i] = new char[sM];
                 ~~~      ^~
/in/main.cpp:308:34: warning: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
                Node* tmp = trip[i];
                            ~~~~ ^
/in/main.cpp:315:39: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion]
            char** tmpMap = new char*[sN];
                            ~~~       ^~
/in/main.cpp:317:40: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion]
                tmpMap[i]   = new char[sM];
                              ~~~      ^~
/in/main.cpp:318:40: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion]
                tmpMap[i+1] = new char[sM];
                              ~~~      ^~
/in/main.cpp:319:40: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion]
                tmpMap[i+2] = new char[sM];
                              ~~~      ^~
/in/main.cpp:320:40: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion]
                tmpMap[i+3] = new char[sM];
                              ~~~      ^~
/in/main.cpp:324:38: warning: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
                if (targetChar!=trip[i]->key){
                                ~~~~ ^
/in/main.cpp:326:43: warning: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
                    tmp->key       = trip[i]->key; 
                                     ~~~~ ^
/in/main.cpp:332:43: warning: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
                    targetChar     = trip[i]->key;
                                     ~~~~ ^
/in/main.cpp:339:41: warning: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
                char tmpCheck = tmpLead[i]->key;
                                ~~~~~~~ ^
/in/main.cpp:350:40: warning: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
                lead.push_back(tmpLead[i]);
                               ~~~~~~~ ^
/in/main.cpp:362:38: warning: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
                if (targetChar!=lead[i]->key){
                                ~~~~ ^
/in/main.cpp:363:40: warning: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
                    targetChar = (lead[i]->key=='a'+(char)col) ? '^' : lead[i]->key;
                                  ~~~~ ^
/in/main.cpp:363:77: warning: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
                    targetChar = (lead[i]->key=='a'+(char)col) ? '^' : lead[i]->key;
                                                                       ~~~~ ^
/in/main.cpp:371:39: warning: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
                    targetChar = lead[i]->key;
                                 ~~~~ ^
/in/main.cpp:374:26: warning: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
                if (lead[i]->x==-1) continue;
                    ~~~~ ^
/in/main.cpp:375:42: warning: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
                int tmpX = trip[lead[i]->x]->x, tmpY = trip[lead[i]->x]->y;
                           ~~~~ ~~~~~~~~~^
/in/main.cpp:375:38: warning: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
                int tmpX = trip[lead[i]->x]->x, tmpY = trip[lead[i]->x]->y;
                                ~~~~ ^
/in/main.cpp:375:70: warning: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
                int tmpX = trip[lead[i]->x]->x, tmpY = trip[lead[i]->x]->y;
                                                       ~~~~ ~~~~~~~~~^
/in/main.cpp:375:66: warning: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
                int tmpX = trip[lead[i]->x]->x, tmpY = trip[lead[i]->x]->y;
                                                            ~~~~ ^
/in/main.cpp:377:34: warning: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
                for (int j=(lead[i]->x)-1;j>=lead[i]->y+1;j--){
                            ~~~~ ^
/in/main.cpp:377:51: warning: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
                for (int j=(lead[i]->x)-1;j>=lead[i]->y+1;j--){
                                             ~~~~ ^
/in/main.cpp:378:33: warning: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
                    tmpX = trip[j]->x; tmpY = trip[j]->y;
                           ~~~~ ^
/in/main.cpp:378:52: warning: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
                    tmpX = trip[j]->x; tmpY = trip[j]->y;
                                              ~~~~ ^
/in/main.cpp:381:38: warning: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
                tmpX = trip[lead[i]->y]->x; tmpY = trip[lead[i]->y]->y;
                       ~~~~ ~~~~~~~~~^
/in/main.cpp:381:34: warning: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
                tmpX = trip[lead[i]->y]->x; tmpY = trip[lead[i]->y]->y;
                            ~~~~ ^
/in/main.cpp:381:66: warning: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
                tmpX = trip[lead[i]->y]->x; tmpY = trip[lead[i]->y]->y;
                                                   ~~~~ ~~~~~~~~~^
/in/main.cpp:381:62: warning: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
                tmpX = trip[lead[i]->y]->x; tmpY = trip[lead[i]->y]->y;
                                                        ~~~~ ^
/in/main.cpp:384:62: warning: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
            for (int i=0;i<(int)lead.size();i++) delete lead[i];
                                                        ~~~~ ^
33 warnings generated.
# Status Time Cost Memory Cost
#1 Memory Exceeded (-9) ≥1001ms ≥25.0 MiB
#2 Accepted 2ms 464.0 KiB
#3 Accepted 1ms 460.0 KiB
#4 Accepted 1ms 456.0 KiB
#5 Accepted 1ms 460.0 KiB
#6 Accepted 1ms 464.0 KiB
#7 Accepted 1ms 384.0 KiB
#8 Accepted 1ms 404.0 KiB
#9 Accepted 1ms 460.0 KiB
#10 Accepted 1ms 336.0 KiB
#11 Accepted 1ms 384.0 KiB
#12 Accepted 1ms 384.0 KiB
#13 Accepted 1ms 472.0 KiB
#14 Accepted 1ms 384.0 KiB
#15 Accepted 1ms 384.0 KiB
#16 Accepted 1ms 336.0 KiB
#17 Accepted 1ms 384.0 KiB
#18 Accepted 1ms 336.0 KiB
#19 Accepted 1ms 508.0 KiB
#20 Accepted 1ms 336.0 KiB
#21 Accepted 1ms 384.0 KiB
#22 Accepted 1ms 464.0 KiB
#23 Accepted 1ms 384.0 KiB
#24 Accepted 2ms 424.0 KiB
#25 Accepted 1ms 384.0 KiB
#26 Accepted 1ms 396.0 KiB
#27 Accepted 29ms 440.0 KiB
#28 Accepted 1ms 384.0 KiB
#29 Accepted 1ms 460.0 KiB
#30 Accepted 1ms 376.0 KiB
#31 Accepted 1ms 332.0 KiB
#32 Accepted 1ms 384.0 KiB
#33 Accepted 1ms 384.0 KiB
#34 Accepted 1ms 336.0 KiB
#35 Accepted 1ms 384.0 KiB
#36 Accepted 1ms 508.0 KiB
#37 Accepted 2ms 376.0 KiB
#38 Accepted 1ms 336.0 KiB
#39 Accepted 1ms 384.0 KiB
#40 Accepted 84ms 336.0 KiB
#41 Accepted 1ms 408.0 KiB
#42 Accepted 1ms 384.0 KiB
#43 Accepted 2ms 332.0 KiB
#44 Accepted 1ms 512.0 KiB
#45 Accepted 2ms 356.0 KiB

Information

Submit By
Type
Submission
Problem
281 Puzzle Solver
Language
C++ (Clang++, with memory check)
Submit At
2023-09-05 05:39:24
Judged At
2023-09-05 05:39:24
Judged By
Score
44
Total Time
≥1192ms
Peak Memory
≥25.0 MiB