2242 | 2023-01-04 16:43:51 | TuruTamas | Jegesmedve (50) | cpp11 | Forditási hiba |
#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];
}
}
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