Submission #1055626

#TimeUsernameProblemLanguageResultExecution timeMemory
1055626xnqsCombo (IOI18_combo)C++17
0 / 100
0 ms344 KiB
#include "combo.h" std::string guess_sequence(int N) { char* ptr = (char*)&N; ptr += 100; return std::string(ptr); }

Compilation message (stderr)

combo.cpp: In function 'std::string guess_sequence(int)':
combo.cpp:5:6: warning: array subscript 25 is outside array bounds of 'int [1]' [-Warray-bounds]
    5 |  ptr += 100;
      |  ~~~~^~~~~~
combo.cpp:3:32: note: while referencing 'N'
    3 | std::string guess_sequence(int N) {
      |                            ~~~~^
combo.cpp:5:6: warning: array subscript 25 is outside array bounds of 'int [1]' [-Warray-bounds]
    5 |  ptr += 100;
      |  ~~~~^~~~~~
combo.cpp:3:32: note: while referencing 'N'
    3 | std::string guess_sequence(int N) {
      |                            ~~~~^
combo.cpp:5:6: warning: array subscript 25 is outside array bounds of 'int [1]' [-Warray-bounds]
    5 |  ptr += 100;
      |  ~~~~^~~~~~
combo.cpp:3:32: note: while referencing 'N'
    3 | std::string guess_sequence(int N) {
      |                            ~~~~^
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...