#438
ComponenteConexe
Se dă lista muchiilor unui graf neorientat. Să se afișeze componentele conexe ale acestui graf.
Problema | ComponenteConexe | Operații I/O |
componenteconexe.in /componenteconexe.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #14842355 | Utilizator | |
Fișier | componenteconexe.cpp | Dimensiune | 746 B |
Data încărcării | 21 Martie 2019, 09:12 | Scor / rezultat | Eroare de compilare |
componenteconexe.cpp:1:9: error: #include expects "FILENAME" or <FILENAME> #include <iostream> ^ componenteconexe.cpp:2:9: error: #include expects "FILENAME" or <FILENAME> #include <fstream> ^ componenteconexe.cpp:3:9: error: #include expects "FILENAME" or <FILENAME> #include <cmath> ^ componenteconexe.cpp:4:1: error: stray '\302' in program using namespace std; ^ componenteconexe.cpp:4:1: error: stray '\240' in program componenteconexe.cpp:4:1: error: stray '\302' in program componenteconexe.cpp:4:1: error: stray '\240' in program componenteconexe.cpp:6:1: error: stray '\302' in program int nr_prim(int n){ ^ componenteconexe.cpp:6:1: error: stray '\240' in program componenteconexe.cpp:6:1: error: stray '\302' in program componenteconexe.cpp:6:1: error: stray '\240' in program componenteconexe.cpp:8:1: error: stray '\302' in program int i,este_prim=1; ^ componenteconexe.cpp:8:1: error: stray '\240' in program componenteconexe.cpp:10:1: error: stray '\302' in program return 0; ^ componenteconexe.cpp:10:1: error: stray '\240' in program componenteconexe.cpp:19:1: error: stray '\302' in program return este_prim; ^ componenteconexe.cpp:19:1: error: stray '\240' in program componenteconexe.cpp:22:1: error: stray '\302' in program int main(){ ^ componenteconexe.cpp:22:1: error: stray '\240' in program componenteconexe.cpp:23:1: error: stray '\302' in program ifstream sgi("subgraf.in"); ^ componenteconexe.cpp:23:1: error: stray '\240' in program componenteconexe.cpp:24:1: error: stray '\302' in program ofstream sgo("subgraf.out"); ^ componenteconexe.cpp:24:1: error: stray '\240' in program componenteconexe.cpp:25:1: error: stray '\302' in program int n,i,j,a[101][101],nr_neprime[100],nr=0,s=0,M; ^ componenteconexe.cpp:25:1: error: stray '\240' in program componenteconexe.cpp:47:1: error: stray '\302' in program return 0; ^ componenteconexe.cpp:47:1: error: stray '\240' in program componenteconexe.cpp:50:1: error: stray '\310' in program Citește mai multe pe Brainly.ro - https://brainly.ro/tema/2641366#readmore ^ componenteconexe.cpp:50:1: error: stray '\231' in program componenteconexe.cpp: In function 'int nr_prim(int)': componenteconexe.cpp:13:18: error: 'sqrt' was not declared in this scope for(i=2;i<=sqrt(n);i++){ ^ componenteconexe.cpp: In function 'int main()': componenteconexe.cpp:23:1: error: 'ifstream' was not declared in this scope ifstream sgi("subgraf.in"); ^ componenteconexe.cpp:23:11: error: expected ';' before 'sgi' ifstream sgi("subgraf.in"); ^ componenteconexe.cpp:24:1: error: 'ofstream' was not declared in this scope ofstream sgo("subgraf.out"); ^ componenteconexe.cpp:24:11: error: expected ';' before 'sgo' ofstream sgo("subgraf.out"); ^ componenteconexe.cpp:26:1: error: 'sgi' was not declared in this scope sgi>>n; ^ componenteconexe.cpp:37:1: error: 'cout' was not declared in this scope cout<<nr_neprime[i]<<" "; ^ componenteconexe.cpp:45:1: error: 'sgo' was not declared in this scope sgo<<M; ^ componenteconexe.cpp: At global scope: componenteconexe.cpp:50:1: error: 'Cite' does not name a type Citește mai multe pe Brainly.ro - https://brainly.ro/tema/2641366#readmore ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema ComponenteConexe 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ă.