2239 | 2023-01-04 16:42:01 | TuruTamas | Jegesmedve (50) | cpp11 | Compilation error |
#include <bits/stdc++.h>
int main() {
long long int ** args = new long long int*[pow(2, 30)];
for (long int i = 0; i < pow(2, 30); i++)
{
args[i] = new long long int[pow(2, 30)];
}
}
exit status 1
main.cpp: In function 'int main()':
main.cpp:3:48: error: expression in new-declarator must have integral or enumeration type
3 | long long int ** args = new long long int*[pow(2, 30)];
| ^~~
main.cpp:6:37: error: expression in new-declarator must have integral or enumeration type
6 | args[i] = new long long int[pow(2, 30)];
| ^~~
Exited with error status 1