2241 | 2023-01-04 16:43:25 | TuruTamas | Jegesmedve (50) | cpp11 | Compilation error |
#include <bits/stdc++.h>
int main() {
long long int ** args = new long long int*[10000000000000000000];
for (long int i = 0; i < pow(2, 30); i++)
{
args[i] = new long long int[1000000000000000000];
}
}
exit status 1
main.cpp:3:48: warning: integer constant is so large that it is unsigned
3 | long long int ** args = new long long int*[10000000000000000000];
| ^~~~~~~~~~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:3:48: error: size '10000000000000000000' of array exceeds maximum object size '9223372036854775807'
Exited with error status 1