#430
Izolate
Se dă lista muchiilor unui graf neorientat. Să se afișeze vârfurile izolate ale grafului.
Problema | Izolate | Operații I/O |
izolate.in /izolate.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #32660074 | Utilizator | |
Fișier | izolate.cpp | Dimensiune | 1.52 KB |
Data încărcării | 22 Noiembrie 2021, 16:19 | Scor / rezultat | Eroare de compilare |
izolate.cpp:2:10: error: stray '#' in program Problema #430 – Izolate – Rezolvari PBInfo ^ izolate.cpp:2:1: error: stray '\342' in program Problema #430 – Izolate – Rezolvari PBInfo ^ izolate.cpp:2:1: error: stray '\200' in program izolate.cpp:2:1: error: stray '\223' in program izolate.cpp:2:1: error: stray '\342' in program izolate.cpp:2:1: error: stray '\200' in program izolate.cpp:2:1: error: stray '\223' in program izolate.cpp:4:1: error: stray '\305' in program Cerinţa ^ izolate.cpp:4:1: error: stray '\243' in program izolate.cpp:5:1: error: stray '\304' in program Se dă lista muchiilor unui graf neorientat. Să se afișeze vârfurile izolate ale grafului. ^ izolate.cpp:5:1: error: stray '\203' in program izolate.cpp:5:1: error: stray '\304' in program izolate.cpp:5:1: error: stray '\203' in program izolate.cpp:5:1: error: stray '\310' in program izolate.cpp:5:1: error: stray '\231' in program izolate.cpp:5:1: error: stray '\303' in program izolate.cpp:5:1: error: stray '\242' in program izolate.cpp:8:1: error: stray '\305' in program Fişierul de intrare izolate.in conţine pe prima linie numărul n, reprezentând numărul de vârfuri ale grafului. Fiecare dintre următoarele linii conține câte o pereche de numere i j, cu semnificația că există muchie între i și j. ^ izolate.cpp:8:1: error: stray '\237' in program izolate.cpp:8:1: error: stray '\305' in program izolate.cpp:8:1: error: stray '\243' in program izolate.cpp:8:1: error: stray '\304' in program izolate.cpp:8:1: error: stray '\203' in program izolate.cpp:8:1: error: stray '\303' in program izolate.cpp:8:1: error: stray '\242' in program izolate.cpp:8:1: error: stray '\304' in program izolate.cpp:8:1: error: stray '\203' in program izolate.cpp:8:1: error: stray '\303' in program izolate.cpp:8:1: error: stray '\242' in program izolate.cpp:8:1: error: stray '\304' in program izolate.cpp:8:1: error: stray '\203' in program izolate.cpp:8:1: error: stray '\310' in program izolate.cpp:8:1: error: stray '\233' in program izolate.cpp:8:1: error: stray '\303' in program izolate.cpp:8:1: error: stray '\242' in program izolate.cpp:8:1: error: stray '\310' in program izolate.cpp:8:1: error: stray '\233' in program izolate.cpp:8:1: error: stray '\304' in program izolate.cpp:8:1: error: stray '\203' in program izolate.cpp:8:1: error: stray '\304' in program izolate.cpp:8:1: error: stray '\203' in program izolate.cpp:8:1: error: stray '\303' in program izolate.cpp:8:1: error: stray '\256' in program izolate.cpp:8:1: error: stray '\310' in program izolate.cpp:8:1: error: stray '\231' in program izolate.cpp:10:1: error: stray '\305' in program Date de ieşire ^ izolate.cpp:10:1: error: stray '\237' in program izolate.cpp:11:1: error: stray '\305' in program Fişierul de ieşire izolate.out va conţine pe prima linie numărul m de vârfuri izolate, urmat de cele m vârfuri izolate, în ordine crescătoare, separate prin exact un spațiu. ^ izolate.cpp:11:1: error: stray '\237' in program izolate.cpp:11:1: error: stray '\305' in program izolate.cpp:11:1: error: stray '\237' in program izolate.cpp:11:1: error: stray '\305' in program izolate.cpp:11:1: error: stray '\243' in program izolate.cpp:11:1: error: stray '\304' in program izolate.cpp:11:1: error: stray '\203' in program izolate.cpp:11:1: error: stray '\303' in program izolate.cpp:11:1: error: stray '\242' in program izolate.cpp:11:1: error: stray '\303' in program izolate.cpp:11:1: error: stray '\242' in program izolate.cpp:11:1: error: stray '\303' in program izolate.cpp:11:1: error: stray '\256' in program izolate.cpp:11:1: error: stray '\304' in program izolate.cpp:11:1: error: stray '\203' in program izolate.cpp:11:1: error: stray '\310' in program izolate.cpp:11:1: error: stray '\233' in program izolate.cpp:13:1: error: stray '\305' in program Restricţii şi precizări ^ izolate.cpp:13:1: error: stray '\243' in program izolate.cpp:13:1: error: stray '\305' in program izolate.cpp:13:1: error: stray '\237' in program izolate.cpp:13:1: error: stray '\304' in program izolate.cpp:13:1: error: stray '\203' in program izolate.cpp:14:1: error: stray '\342' in program 1 ≤ n ≤ 100 ^ izolate.cpp:14:1: error: stray '\211' in program izolate.cpp:14:1: error: stray '\244' in program izolate.cpp:14:1: error: stray '\342' in program izolate.cpp:14:1: error: stray '\211' in program izolate.cpp:14:1: error: stray '\244' in program izolate.cpp:15:1: error: stray '\342' in program 1 ≤ i , j ≤ n ^ izolate.cpp:15:1: error: stray '\211' in program izolate.cpp:15:1: error: stray '\244' in program izolate.cpp:15:1: error: stray '\342' in program izolate.cpp:15:1: error: stray '\211' in program izolate.cpp:15:1: error: stray '\244' in program izolate.cpp:16:1: error: stray '\303' in program muchiile se pot repeta în fișierul de intrare ^ izolate.cpp:16:1: error: stray '\256' in program izolate.cpp:16:1: error: stray '\310' in program izolate.cpp:16:1: error: stray '\231' in program izolate.cpp:2:1: error: 'Problema' does not name a type Problema #430 – Izolate – Rezolvari PBInfo ^ izolate.cpp: In function 'int main()': izolate.cpp:37:5: error: reference to 'cin' is ambiguous cin >> n; ^ izolate.cpp:31:10: note: candidates are: std::ifstream cin ifstream cin("izolate.in"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from izolate.cpp:29: /usr/include/c++/4.8/iostream:60:18: note: std::istream std::cin extern istream cin; /// Linked to standard input ^ izolate.cpp:38:11: error: reference to 'cin' is ambiguous while(cin >> p >> r) ^ izolate.cpp:31:10: note: candidates are: std::ifstream cin ifstream cin("izolate.in"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from izolate.cpp:29: /usr/include/c++/4.8/iostream:60:18: note: std::istream std::cin extern istream cin; /// Linked to standard input ^ izolate.cpp:50:5: error: reference to 'cout' is ambiguous cout << cnt << " "; ^ izolate.cpp:32:10: note: candidates are: std::ofstream cout ofstream cout("izolate.out"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from izolate.cpp:29: /usr/include/c++/4.8/iostream:61:18: note: std::ostream std::cout extern ostream cout; /// Linked to standard output ^ izolate.cpp:56:25: error: reference to 'cout' is ambiguous if(ok == 0) cout << i << " "; ^ izolate.cpp:32:10: note: candidates are: std::ofstream cout ofstream cout("izolate.out"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from izolate.cpp:29: /usr/include/c++/4.8/iostream:61:18: note: std::ostream std::cout extern ostream cout; /// Linked to standard output ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Izolate 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ă.