Kortos

Taškai: 0

Compile: FAIL

kortu_zaidimass.cpp:20:18: error: ‘vector’ does not name a type 20 | int zinoma(const vector<Korta>& kalade, const vector<Uzuomina> uzuominos, Uzuomina papildoma_uzuomina /* kad nereiketu vis naujo vectorio suurineti */ ) | ^~~~~~ kortu_zaidimass.cpp:20:24: error: expected ‘,’ or ‘...’ before ‘<’ token 20 | int zinoma(const vector<Korta>& kalade, const vector<Uzuomina> uzuominos, Uzuomina papildoma_uzuomina /* kad nereiketu vis naujo vectorio suurineti */ ) | ^ kortu_zaidimass.cpp: In function ‘int zinoma(int)’: kortu_zaidimass.cpp:24:30: error: ‘kalade’ was not declared in this scope 24 | for (const auto& korta : kalade) | ^~~~~~ kortu_zaidimass.cpp:27:29: error: ‘papildoma_uzuomina’ was not declared in this scope 27 | if (korta.spalva == papildoma_uzuomina.apie_spalva || korta.skaicius == papildoma_uzuomina.apie_skaiciu) | ^~~~~~~~~~~~~~~~~~ kortu_zaidimass.cpp:33:41: error: ‘uzuominos’ was not declared in this scope; did you mean ‘uzuomina’? 33 | for (const auto& uzuomina : uzuominos) | ^~~~~~~~~ | uzuomina kortu_zaidimass.cpp:54:12: error: ‘kalade’ was not declared in this scope 54 | return kalade.size() - tikras_likusiuju_dydis; | ^~~~~~ kortu_zaidimass.cpp: In function ‘int main()’: kortu_zaidimass.cpp:61:5: error: ‘vector’ was not declared in this scope 61 | vector<Korta> kalade; | ^~~~~~ kortu_zaidimass.cpp:4:1: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’? 3 | #include <algorithm> +++ |+#include <vector> 4 | #include <string> kortu_zaidimass.cpp:61:17: error: expected primary-expression before ‘>’ token 61 | vector<Korta> kalade; | ^ kortu_zaidimass.cpp:61:19: error: ‘kalade’ was not declared in this scope 61 | vector<Korta> kalade; | ^~~~~~ kortu_zaidimass.cpp:91:20: error: expected primary-expression before ‘>’ token 91 | vector<Uzuomina> uzuominos; | ^ kortu_zaidimass.cpp:91:22: error: ‘uzuominos’ was not declared in this scope; did you mean ‘Uzuomina’? 91 | vector<Uzuomina> uzuominos; | ^~~~~~~~~ | Uzuomina kortu_zaidimass.cpp:97:41: error: ‘uzuominos_skaicius’ was not declared in this scope; did you mean ‘uzuominos_skaicus’? 97 | for (int uzuominos_skaicus = 0; uzuominos_skaicius < 5; uzuominos_skaicus++) | ^~~~~~~~~~~~~~~~~~ | uzuominos_skaicus

nr.resulttimemessage