#3489
Numara punctele
C++
Dându-se o mulțime de puncte și o mulțime de cercuri, pentru fiecare cerc să se stabilească câte puncte conține.
Problema | Numara punctele | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.2 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #50471724 | Utilizator | |
Fișier | numara_punctele.cpp | Dimensiune | 1.17 KB |
Data încărcării | 10 Aprilie 2024, 18:44 | Scor / rezultat | Eroare de compilare |
numara_punctele.cpp: In function 'int main()': numara_punctele.cpp:35:15: error: expected unqualified-id before '[' token for (auto &[py, pxx] : S) sort(pxx.begin(), pxx.end()); ^ numara_punctele.cpp:35:15: error: expected ';' before '[' token numara_punctele.cpp:35:16: error: 'py' was not declared in this scope for (auto &[py, pxx] : S) sort(pxx.begin(), pxx.end()); ^ numara_punctele.cpp:35:20: error: 'pxx' was not declared in this scope for (auto &[py, pxx] : S) sort(pxx.begin(), pxx.end()); ^ numara_punctele.cpp: In lambda function: numara_punctele.cpp:35:25: error: expected '{' before ':' token for (auto &[py, pxx] : S) sort(pxx.begin(), pxx.end()); ^ numara_punctele.cpp: In function 'int main()': numara_punctele.cpp:35:25: error: expected ';' before ':' token numara_punctele.cpp:35:25: error: expected primary-expression before ':' token numara_punctele.cpp:35:25: error: expected ')' before ':' token numara_punctele.cpp:35:25: error: expected primary-expression before ':' token numara_punctele.cpp:35:25: error: expected ';' before ':' token numara_punctele.cpp:42:18: error: expected unqualified-id before '[' token for (auto &[py, pxx] : S) ^ numara_punctele.cpp:42:18: error: expected ';' before '[' token numara_punctele.cpp:42:19: error: 'py' was not declared in this scope for (auto &[py, pxx] : S) ^ numara_punctele.cpp:42:23: error: 'pxx' was not declared in this scope for (auto &[py, pxx] : S) ^ numara_punctele.cpp: In lambda function: numara_punctele.cpp:42:28: error: expected '{' before ':' token for (auto &[py, pxx] : S) ^ numara_punctele.cpp: In function 'int main()': numara_punctele.cpp:42:28: error: expected ';' before ':' token numara_punctele.cpp:42:28: error: expected primary-expression before ':' token numara_punctele.cpp:42:28: error: expected ')' before ':' token numara_punctele.cpp:42:28: error: expected primary-expression before ':' token numara_punctele.cpp:42:28: error: expected ';' before ':' token
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Numara punctele 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ă.