#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 | #53687419 | Utilizator | |
Fișier | cercuri.cpp | Dimensiune | 375 B |
Data încărcării | 08 Noiembrie 2024, 13:10 | Scor / rezultat | Eroare de compilare |
cercuri.cpp:2:17: error: 'stc' is not a namespace-name using namespace stc; ^ cercuri.cpp:2:20: error: expected namespace-name before ';' token using namespace stc; ^ cercuri.cpp: In function 'int main()': cercuri.cpp:7:5: error: 'cin' was not declared in this scope cin >>a >> x1 >> y1 >> b >> x2 >> y2; ^ cercuri.cpp:7:5: 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:9:8: error: 'd' was not declared in this scope if(d > (a + b) * (a + b)) ^ cercuri.cpp:10:9: error: 'cout' was not declared in this scope cout << 0; ^ cercuri.cpp:10:9: 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:11:8: error: 'd' was not declared in this scope if(d == (a + b) * (a + b)) ^ cercuri.cpp:12:9: error: 'cout' was not declared in this scope cout << 1; ^ cercuri.cpp:12:9: 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:13:8: error: 'd' was not declared in this scope if(d < (a + b) * (a + b)) ^ cercuri.cpp:14:9: error: 'cout' was not declared in this scope cout << 2; ^ cercuri.cpp:14:9: 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:8:9: warning: unused variable 'dLaADoua' [-Wunused-variable] int dLaADoua = ((x1 - x2) * (x1 - x2)) + ((y1 - y2) * (y1 - y2)); ^
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ă.