Submission #1000502

# Submission time Handle Problem Language Result Execution time Memory
1000502 2024-06-17T15:51:58 Z onbert Jail (JOI22_jail) C++17
0 / 100
1 ms 348 KB
#include <bits/stdc++.h>
using namespace std;
#define int long long
signed main() {
    ios::sync_with_stdio(0); cin.tie(0);
    int a[2];
    cout << a[1000000] << endl;
}

Compilation message

jail.cpp: In function 'int main()':
jail.cpp:7:22: warning: array subscript 1000000 is above array bounds of 'long long int [2]' [-Warray-bounds]
    7 |     cout << a[1000000] << endl;
      |                      ^
jail.cpp:6:9: note: while referencing 'a'
    6 |     int a[2];
      |         ^
# Verdict Execution time Memory Grader output
1 Runtime error 0 ms 348 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 1 ms 344 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 1 ms 344 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 1 ms 344 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 1 ms 344 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 1 ms 344 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 0 ms 348 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -