#2707
matad
Dându-se o matrice de numere întregi cu n
linii și n
coloane, să se verifice dacă este sau nu matrice de adiacență asociată unui graf neorientat.
Folclorul informatic
Problema | matad | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #14128051 | Utilizator | |
Fișier | matad.cpp | Dimensiune | 4.03 KB |
Data încărcării | 22 Februarie 2019, 09:02 | Scor / rezultat | Eroare de compilare |
matad.cpp:71:5: error: redefinition of 'int i' int i, j, a[20][20]; ^ matad.cpp:2:5: error: 'int i' previously declared here int i, j, a[20][20]; ^ matad.cpp:71:8: error: redefinition of 'int j' int i, j, a[20][20]; ^ matad.cpp:2:8: error: 'int j' previously declared here int i, j, a[20][20]; ^ matad.cpp:71:19: error: redefinition of 'int a [20][20]' int i, j, a[20][20]; ^ matad.cpp:2:11: error: 'int a [20][20]' previously declared here int i, j, a[20][20]; ^ matad.cpp: In function 'int egalitate(int, int)': matad.cpp:74:5: error: redefinition of 'int egalitate(int, int)' int egalitate(int n, int m) ^ matad.cpp:5:5: error: 'int egalitate(int, int)' previously defined here int egalitate(int n, int m) ^ matad.cpp: In function 'int elemente(int, int)': matad.cpp:81:5: error: redefinition of 'int elemente(int, int)' int elemente(int n, int m) ^ matad.cpp:12:5: error: 'int elemente(int, int)' previously defined here int elemente(int n, int m) ^ matad.cpp: In function 'int diagonala(int, int)': matad.cpp:90:5: error: redefinition of 'int diagonala(int, int)' int diagonala(int n, int m) ^ matad.cpp:21:5: error: 'int diagonala(int, int)' previously defined here int diagonala(int n, int m) ^ matad.cpp: In function 'int simetrica(int, int)': matad.cpp:101:5: error: redefinition of 'int simetrica(int, int)' int simetrica(int n, int m) ^ matad.cpp:32:5: error: 'int simetrica(int, int)' previously defined here int simetrica(int n, int m) ^ matad.cpp: In function 'int main()': matad.cpp:111:5: error: redefinition of 'int main()' int main() ^ matad.cpp:42:5: error: 'int main()' previously defined here int main() ^ matad.cpp: At global scope: matad.cpp:140:5: error: redefinition of 'int i' int i, j, a[20][20]; ^ matad.cpp:2:5: error: 'int i' previously declared here int i, j, a[20][20]; ^ matad.cpp:140:8: error: redefinition of 'int j' int i, j, a[20][20]; ^ matad.cpp:2:8: error: 'int j' previously declared here int i, j, a[20][20]; ^ matad.cpp:140:19: error: redefinition of 'int a [20][20]' int i, j, a[20][20]; ^ matad.cpp:2:11: error: 'int a [20][20]' previously declared here int i, j, a[20][20]; ^ matad.cpp: In function 'int egalitate(int, int)': matad.cpp:143:5: error: redefinition of 'int egalitate(int, int)' int egalitate(int n, int m) ^ matad.cpp:5:5: error: 'int egalitate(int, int)' previously defined here int egalitate(int n, int m) ^ matad.cpp: In function 'int elemente(int, int)': matad.cpp:150:5: error: redefinition of 'int elemente(int, int)' int elemente(int n, int m) ^ matad.cpp:12:5: error: 'int elemente(int, int)' previously defined here int elemente(int n, int m) ^ matad.cpp: In function 'int diagonala(int, int)': matad.cpp:159:5: error: redefinition of 'int diagonala(int, int)' int diagonala(int n, int m) ^ matad.cpp:21:5: error: 'int diagonala(int, int)' previously defined here int diagonala(int n, int m) ^ matad.cpp: In function 'int simetrica(int, int)': matad.cpp:170:5: error: redefinition of 'int simetrica(int, int)' int simetrica(int n, int m) ^ matad.cpp:32:5: error: 'int simetrica(int, int)' previously defined here int simetrica(int n, int m) ^ matad.cpp: In function 'int main()': matad.cpp:180:5: error: redefinition of 'int main()' int main() ^ matad.cpp:42:5: error: 'int main()' previously defined here int main() ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema matad 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ă.