#778
Se dă o matrice cu n linii şi m coloane şi elemente numere naturale. Să se determine mulțimea formată din elementele distincte ale chenarului matricei.
| Problema | MChenar | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64115456 | Utilizator | |
| Fișier | mchenar.cpp | Dimensiune | 4.48 KB |
| Data încărcării | 17 Aprilie 2026, 19:33 | Scor/rezultat | Eroare de compilare |
mchenar.cpp:46:2: error: stray ‘#’ in program 46 | }#include <iostream> | ^ mchenar.cpp:91:2: error: stray ‘#’ in program 91 | }#include <iostream> | ^ mchenar.cpp:136:2: error: stray ‘#’ in program 136 | }#include <iostream> | ^ mchenar.cpp: In function ‘int main()’: mchenar.cpp:37:15: warning: unused variable ‘j’ [-Wunused-variable] 37 | { int j; | ^ mchenar.cpp: At global scope: mchenar.cpp:46:3: error: ‘include’ does not name a type 46 | }#include <iostream> | ^~~~~~~ mchenar.cpp:48:5: error: redefinition of ‘int main()’ 48 | int main() | ^~~~ mchenar.cpp:3:5: note: ‘int main()’ previously defined here 3 | int main() | ^~~~ mchenar.cpp: In function ‘int main()’: mchenar.cpp:82:15: warning: unused variable ‘j’ [-Wunused-variable] 82 | { int j; | ^ mchenar.cpp: At global scope: mchenar.cpp:91:3: error: ‘include’ does not name a type 91 | }#include <iostream> | ^~~~~~~ mchenar.cpp:93:5: error: redefinition of ‘int main()’ 93 | int main() | ^~~~ mchenar.cpp:3:5: note: ‘int main()’ previously defined here 3 | int main() | ^~~~ mchenar.cpp: In function ‘int main()’: mchenar.cpp:127:15: warning: unused variable ‘j’ [-Wunused-variable] 127 | { int j; | ^ mchenar.cpp: At global scope: mchenar.cpp:136:3: error: ‘include’ does not name a type 136 | }#include <iostream> | ^~~~~~~ mchenar.cpp:138:5: error: redefinition of ‘int main()’ 138 | int main() | ^~~~ mchenar.cpp:3:5: note: ‘int main()’ previously defined here 3 | int main() | ^~~~ mchenar.cpp: In function ‘int main()’: mchenar.cpp:172:15: warning: unused variable ‘j’ [-Wunused-variable] 172 | { int j; | ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema MChenar 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ă.