22422023-01-04 16:43:51TuruTamasJegesmedve (50)cpp11Compilation error
#include <bits/stdc++.h>
int main() {
    long long int ** args = new long long int*[9223372036854775807];
    for (long int i = 0; i < pow(2, 30); i++)
    {
        args[i] = new long long int[9223372036854775807];
    }
}
Compilation error
exit status 1
main.cpp: In function 'int main()':
main.cpp:3:67: error: size '18446744073709551608' of array exceeds maximum object size '9223372036854775807'
    3 |     long long int ** args = new long long int*[9223372036854775807];
      |                                                                   ^
main.cpp:6:56: error: size '18446744073709551608' of array exceeds maximum object size '9223372036854775807'
    6 |         args[i] = new long long int[9223372036854775807];
      |                                                        ^
Exited with error status 1