We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
I did the same thing not dynamically but using 2D static arrays , .I even tried reading new line character with scanf (). Im getting segmentation fault error can some one help me regading the same.
include
include
include
include
include
using namespace std;
int main() {
/* Enter your code here. Read input from STDIN. Print output to STDOUT */
int a[100000][300000],n,q,i,m,j,s;
scanf("%d %d\n",&n,&q);
printf("%d %d",n,q);
scanf("%d",&i);
Variable Sized Arrays
You are viewing a single comment's thread. Return to all comments →
I did the same thing not dynamically but using 2D static arrays , .I even tried reading new line character with scanf (). Im getting segmentation fault error can some one help me regading the same.
include
include
include
include
include
using namespace std;
int main() { /* Enter your code here. Read input from STDIN. Print output to STDOUT */
int a[100000][300000],n,q,i,m,j,s; scanf("%d %d\n",&n,&q); printf("%d %d",n,q); scanf("%d",&i);
}