Borderou de evaluare (job #1251456)

Utilizator pepsiM4A1Ozturk Arif pepsiM4A1 Data 29 octombrie 2014 15:22:30
Problema Algoritmul lui Dijkstra Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:7:20: error: size of array ‘b’ is too large int b[50000][250000]; ^ user.cpp:8:20: error: size of array ‘c’ is too large int c[50000][250000]; ^ user.cpp: In function ‘int main()’: user.cpp:33:9: error: ‘b’ was not declared in this scope b[rel1][b[rel1][100]]=rel2; ^ user.cpp:34:9: error: ‘c’ was not declared in this scope c[rel1][c[rel1][100]]=val; ^ user.cpp:50:23: error: ‘b’ was not declared in this scope for(int j=0;j<b[pos][100];j++) ^ user.cpp:52:34: error: ‘c’ was not declared in this scope std::cout<<valo[pos]+c[pos][j]<<" "<<valo[b[pos][j]]<<"\n"; ^ user.cpp:62:35: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat=] fprintf(fout,"%d ",valo[i]); ^ user.cpp:29:30: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fin,"%d %d",&n,&m); ^ user.cpp:32:48: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fin,"%d %d %d",&rel1,&rel2,&val); ^ user.cpp:64:20: warning: ignoring return value of ‘int system(const char*)’, declared with attribute warn_unused_result [-Wunused-result] system("pause"); ^

Ceva nu functioneaza?