Problema | Matrice_Rara | Operații I/O |
matrice_rara.in /matrice_rara.out
|
---|---|---|---|
Limita timp | 1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #51389503 | Utilizator | |
Fișier | matrice_rara.cpp | Dimensiune | 821 B |
Data încărcării | 12 Iunie 2024, 09:38 | Scor / rezultat | Eroare de compilare |
matrice_rara.cpp:9:27: error: size of array 'A' is too large int i,j,A[1000001][1000001],B[1000001][1000001],C[1000001][1000001],n,m,N1,N2,nr,x; ^ matrice_rara.cpp:9:47: error: size of array 'B' is too large int i,j,A[1000001][1000001],B[1000001][1000001],C[1000001][1000001],n,m,N1,N2,nr,x; ^ matrice_rara.cpp:9:67: error: size of array 'C' is too large int i,j,A[1000001][1000001],B[1000001][1000001],C[1000001][1000001],n,m,N1,N2,nr,x; ^ matrice_rara.cpp: In function 'int main()': matrice_rara.cpp:15:43: error: 'A' was not declared in this scope for(int k=1;k<=N1;k++) {fin>>i>>j>>x; A[i][j]=x;} ^ matrice_rara.cpp:16:43: error: 'B' was not declared in this scope for(int k=1;k<=N2;k++) {fin>>i>>j>>x; B[i][j]=x;} ^ matrice_rara.cpp:20:16: error: 'A' was not declared in this scope if(A[i][j]!=0 || B[i][j]!=0) C[i][j]=A[i][j]+B[i][j]; ^ matrice_rara.cpp:20:30: error: 'B' was not declared in this scope if(A[i][j]!=0 || B[i][j]!=0) C[i][j]=A[i][j]+B[i][j]; ^ matrice_rara.cpp:20:42: error: 'C' was not declared in this scope if(A[i][j]!=0 || B[i][j]!=0) C[i][j]=A[i][j]+B[i][j]; ^ matrice_rara.cpp:24:16: error: 'C' was not declared in this scope if(C[i][j]!=0) nr++; ^ matrice_rara.cpp:30:16: error: 'C' was not declared in this scope if(C[i][j]!=0) fout<<i<<' '<<j<<' '<<C[i][j]<<endl; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Matrice_Rara face parte din prima categorie. Soluția propusă de tine va fi evaluată astfel:
Suma punctajelor acordate pe testele utilizate pentru verificare este 100. Astfel, soluția ta poate obține cel mult 100 de puncte, caz în care se poate considera corectă.