#4639
cck11
Se dă un graf neorientat cu n
vârfuri și m
muchii prin lista muchiilor și un număr natural k
. Afișați numărul de componente conexe care sunt formate din k
vârfuri.
Problema | cck11 | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #51071655 | Utilizator | |
Fișier | cck11.cpp | Dimensiune | 6.40 KB |
Data încărcării | 22 Mai 2024, 11:56 | Scor / rezultat | Eroare de compilare |
cck11.cpp: In function 'int main()': cck11.cpp:158:1: error: a function-definition is not allowed here before '{' token { ^ cck11.cpp:162:12: error: cannot call constructor 'Real::Real' directly [-fpermissive] Real::Real() ^ cck11.cpp:162:12: error: for a function-style cast, remove the redundant '::Real' [-fpermissive] cck11.cpp:163:1: error: expected ';' before '{' token { ^ cck11.cpp:166:12: error: expected primary-expression before 'const' Real::Real(const double x) ^ cck11.cpp:166:26: error: cannot call constructor 'Real::Real' directly [-fpermissive] Real::Real(const double x) ^ cck11.cpp:166:26: error: for a function-style cast, remove the redundant '::Real' [-fpermissive] cck11.cpp:167:1: error: expected ';' before '{' token { ^ cck11.cpp:170:23: error: cannot call member function 'Real::operator double() const' without object Real::operator double() const ^ cck11.cpp:170:25: error: expected ';' before 'const' Real::operator double() const ^ cck11.cpp:174:1: error: a template declaration cannot appear at block scope template<class T> void Real::operator=(const T x) ^ cck11.cpp:178:1: error: expected ';' before 'template' template<class T> bool Real::operator==(const T x) const ^ cck11.cpp:182:1: error: a template declaration cannot appear at block scope template<class T> bool Real::operator<(const T x) const ^ cck11.cpp:186:1: error: expected ';' before 'template' template<class T> bool Real::operator<=(const T x) const ^ cck11.cpp:190:1: error: a template declaration cannot appear at block scope template<class T> bool Real::operator>(const T x) const ^ cck11.cpp:194:1: error: expected ';' before 'template' template<class T> bool Real::operator>=(const T x) const ^ cck11.cpp:199:1: error: a function-definition is not allowed here before '{' token { ^ cck11.cpp:203:1: error: a function-definition is not allowed here before '{' token { ^ cck11.cpp:208:1: error: a function-definition is not allowed here before '{' token { ^ cck11.cpp:217:1: error: a template declaration cannot appear at block scope template<class type, class typeHash> ^ cck11.cpp:222:1: error: expected ';' before 'template' template<class type, class typeHash> ^ cck11.cpp:303:1: error: expected '}' at end of input } ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema cck11 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ă.