#1507
grupuri
Scrieți un program care, pentru o matrice pătratică dată, determină câte grupuri conţine.
Problema | grupuri | Operații I/O |
![]() grupuri.in /grupuri.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #51620987 | Utilizator | |
Fișier | grupuri.cpp | Dimensiune | 1.33 KB |
Data încărcării | 22 Iulie 2024, 23:10 | Scor / rezultat | Eroare de compilare |
grupuri.cpp:35:11: error: redefinition of 'std::ifstream f' ifstream f("grupuri.in"); ^ grupuri.cpp:6:10: error: 'std::ifstream f' previously declared here ifstream f("grupuri.in"); ^ grupuri.cpp:36:11: error: redefinition of 'std::ofstream g' ofstream g("grupuri.out"); ^ grupuri.cpp:7:10: error: 'std::ofstream g' previously declared here ofstream g("grupuri.out"); ^ grupuri.cpp:38:5: error: redefinition of 'int x' int x, y, xf, yf, max1, n, m, a[101][101], nr, cnt, min1 = 999999; ^ grupuri.cpp:9:5: error: 'int x' previously declared here int x, y, xf, yf, max1, n, m, a[101][101], nr, cnt, min1 = 999999; ^ grupuri.cpp:38:8: error: redefinition of 'int y' int x, y, xf, yf, max1, n, m, a[101][101], nr, cnt, min1 = 999999; ^ grupuri.cpp:9:8: error: 'int y' previously declared here int x, y, xf, yf, max1, n, m, a[101][101], nr, cnt, min1 = 999999; ^ grupuri.cpp:38:11: error: redefinition of 'int xf' int x, y, xf, yf, max1, n, m, a[101][101], nr, cnt, min1 = 999999; ^ grupuri.cpp:9:11: error: 'int xf' previously declared here int x, y, xf, yf, max1, n, m, a[101][101], nr, cnt, min1 = 999999; ^ grupuri.cpp:38:15: error: redefinition of 'int yf' int x, y, xf, yf, max1, n, m, a[101][101], nr, cnt, min1 = 999999; ^ grupuri.cpp:9:15: error: 'int yf' previously declared here int x, y, xf, yf, max1, n, m, a[101][101], nr, cnt, min1 = 999999; ^ grupuri.cpp:38:19: error: redefinition of 'int max1' int x, y, xf, yf, max1, n, m, a[101][101], nr, cnt, min1 = 999999; ^ grupuri.cpp:9:19: error: 'int max1' previously declared here int x, y, xf, yf, max1, n, m, a[101][101], nr, cnt, min1 = 999999; ^ grupuri.cpp:38:25: error: redefinition of 'int n' int x, y, xf, yf, max1, n, m, a[101][101], nr, cnt, min1 = 999999; ^ grupuri.cpp:9:25: error: 'int n' previously declared here int x, y, xf, yf, max1, n, m, a[101][101], nr, cnt, min1 = 999999; ^ grupuri.cpp:38:28: error: redefinition of 'int m' int x, y, xf, yf, max1, n, m, a[101][101], nr, cnt, min1 = 999999; ^ grupuri.cpp:9:28: error: 'int m' previously declared here int x, y, xf, yf, max1, n, m, a[101][101], nr, cnt, min1 = 999999; ^ grupuri.cpp:38:41: error: redefinition of 'int a [101][101]' int x, y, xf, yf, max1, n, m, a[101][101], nr, cnt, min1 = 999999; ^ grupuri.cpp:9:31: error: 'int a [101][101]' previously declared here int x, y, xf, yf, max1, n, m, a[101][101], nr, cnt, min1 = 999999; ^ grupuri.cpp:38:44: error: redefinition of 'int nr' int x, y, xf, yf, max1, n, m, a[101][101], nr, cnt, min1 = 999999; ^ grupuri.cpp:9:44: error: 'int nr' previously declared here int x, y, xf, yf, max1, n, m, a[101][101], nr, cnt, min1 = 999999; ^ grupuri.cpp:38:48: error: redefinition of 'int cnt' int x, y, xf, yf, max1, n, m, a[101][101], nr, cnt, min1 = 999999; ^ grupuri.cpp:9:48: error: 'int cnt' previously declared here int x, y, xf, yf, max1, n, m, a[101][101], nr, cnt, min1 = 999999; ^ grupuri.cpp:38:53: error: redefinition of 'int min1' int x, y, xf, yf, max1, n, m, a[101][101], nr, cnt, min1 = 999999; ^ grupuri.cpp:9:53: error: 'int min1' previously defined here int x, y, xf, yf, max1, n, m, a[101][101], nr, cnt, min1 = 999999; ^ grupuri.cpp:39:14: error: redefinition of 'const int dx []' int const dx[] = { -1,0,1,0 }, dy[]={0, 1, 0, -1}; ^ grupuri.cpp:10:11: error: 'const int dx [4]' previously defined here int const dx[] = { -1,0,1,0 }, dy[]={0, 1, 0, -1}; ^ grupuri.cpp:39:35: error: redefinition of 'const int dy []' int const dx[] = { -1,0,1,0 }, dy[]={0, 1, 0, -1}; ^ grupuri.cpp:10:32: error: 'const int dy [4]' previously defined here int const dx[] = { -1,0,1,0 }, dy[]={0, 1, 0, -1}; ^ grupuri.cpp: In function 'void fill1(int, int, int, int)': grupuri.cpp:40:6: error: redefinition of 'void fill1(int, int, int, int)' void fill1(int i, int j, int val,int ver) ^ grupuri.cpp:11:6: error: 'void fill1(int, int, int, int)' previously defined here void fill1(int i, int j, int val,int ver) ^ grupuri.cpp: In function 'int main()': grupuri.cpp:49:5: error: redefinition of 'int main()' int main() ^ grupuri.cpp:20:5: error: 'int main()' previously defined here int main() ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema grupuri 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ă.