#3207
Cercuri
Se dau coordonatele şi razele a două cercuri. Să se determine în câte puncte se intersectează cele două cercuri.
Problema | Cercuri | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #51568050 | Utilizator | |
Fișier | cercuri.cpp | Dimensiune | 604 B |
Data încărcării | 12 Iulie 2024, 22:12 | Scor / rezultat | Eroare de compilare |
cercuri.cpp: In function 'int main()': cercuri.cpp:6:9: error: 'cin' was not declared in this scope cin>>r1>>x1>>y1>>r2>>x2>>y2; ^ cercuri.cpp:6:9: note: suggested alternative: In file included from cercuri.cpp:1:0: /usr/include/c++/4.8/iostream:60:18: note: 'std::cin' extern istream cin; /// Linked to standard input ^ cercuri.cpp:15:13: error: 'cout' was not declared in this scope cout<<"1"; ^ cercuri.cpp:15:13: note: suggested alternative: In file included from cercuri.cpp:1:0: /usr/include/c++/4.8/iostream:61:18: note: 'std::cout' extern ostream cout; /// Linked to standard output ^ cercuri.cpp:17:13: error: 'cout' was not declared in this scope cout<<"0"; ^ cercuri.cpp:17:13: note: suggested alternative: In file included from cercuri.cpp:1:0: /usr/include/c++/4.8/iostream:61:18: note: 'std::cout' extern ostream cout; /// Linked to standard output ^ cercuri.cpp:19:13: error: 'cout' was not declared in this scope cout<<"infinit"; ^ cercuri.cpp:19:13: note: suggested alternative: In file included from cercuri.cpp:1:0: /usr/include/c++/4.8/iostream:61:18: note: 'std::cout' extern ostream cout; /// Linked to standard output ^ cercuri.cpp:21:13: error: 'cout' was not declared in this scope cout<<"2"; ^ cercuri.cpp:21:13: note: suggested alternative: In file included from cercuri.cpp:1:0: /usr/include/c++/4.8/iostream:61:18: note: 'std::cout' extern ostream cout; /// Linked to standard output ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Cercuri 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ă.