Consider the code below:
#include <iostream>
using namespace std;
int main()
{
const int max=500008;
long long cordx[max],cordy[max];
char type[max];
int n;
cin>>n;
for(int m=0;m<n;m++)
cin>>type[m]>>cordx[m]>>cordy[m];
return 0;
}
This code is giving me a Segmentation Fault error on runtime.
Aucun commentaire:
Enregistrer un commentaire