#4267
PerechiPuncte
Se dau n
puncte în plan, nu neapărat distincte, fiecare punct fiind dat prin coordonatele sale (x, y)
, unde x
și y
sunt numere naturale. Spunem că două puncte (x, y)
și (i, j)
sunt simetrice dacă x = j
și y = i
. Să se determine numărul perechilor de puncte simetrice.
Folclorul informatic
Problema | PerechiPuncte | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.7 secunde | Limita memorie |
Total: 128 MB
/
Stivă 64 MB
|
Id soluție | #43028588 | Utilizator | |
Fișier | perechipuncte.cpp | Dimensiune | 565 B |
Data încărcării | 28 Martie 2023, 08:41 | Scor / rezultat | Eroare de compilare |
perechipuncte.cpp: In function 'int main()': perechipuncte.cpp:2:21: error: declaration does not declare anything [-fpermissive] #define NN unsigned int; ^ perechipuncte.cpp:9:5: note: in expansion of macro 'NN' NN x1, y1, x2, y2, x3, y3, A, B, C, D, i; ^ perechipuncte.cpp:9:8: error: 'x1' was not declared in this scope NN x1, y1, x2, y2, x3, y3, A, B, C, D, i; ^ perechipuncte.cpp:9:16: error: 'x2' was not declared in this scope NN x1, y1, x2, y2, x3, y3, A, B, C, D, i; ^ perechipuncte.cpp:9:20: error: 'y2' was not declared in this scope NN x1, y1, x2, y2, x3, y3, A, B, C, D, i; ^ perechipuncte.cpp:9:24: error: 'x3' was not declared in this scope NN x1, y1, x2, y2, x3, y3, A, B, C, D, i; ^ perechipuncte.cpp:9:28: error: 'y3' was not declared in this scope NN x1, y1, x2, y2, x3, y3, A, B, C, D, i; ^ perechipuncte.cpp:9:32: error: 'A' was not declared in this scope NN x1, y1, x2, y2, x3, y3, A, B, C, D, i; ^ perechipuncte.cpp:9:35: error: 'B' was not declared in this scope NN x1, y1, x2, y2, x3, y3, A, B, C, D, i; ^ perechipuncte.cpp:9:38: error: 'C' was not declared in this scope NN x1, y1, x2, y2, x3, y3, A, B, C, D, i; ^ perechipuncte.cpp:9:41: error: 'D' was not declared in this scope NN x1, y1, x2, y2, x3, y3, A, B, C, D, i; ^ perechipuncte.cpp:9:44: error: 'i' was not declared in this scope NN x1, y1, x2, y2, x3, y3, A, B, C, D, i; ^ perechipuncte.cpp:10:12: error: 'n' was not declared in this scope cin >> n >> x1 >> y1 >> x2 >> y2; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema PerechiPuncte 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ă.