Dažniausias skaičius

Taškai: 0

Compile: FAIL

dazniausias_sk.cpp: In function ‘v* konstruot(int, int)’: dazniausias_sk.cpp:17:5: error: ‘dab’ was not declared in this scope 17 | dab=&medis[cur]; | ^~~ dazniausias_sk.cpp: In function ‘int rast(v*, int, int)’: dazniausias_sk.cpp:38:17: error: ‘int v::k’ is private within this context 38 | if (k<=dab->k && dab->d<=d) | ^ dazniausias_sk.cpp:6:9: note: declared private here 6 | int k, d, ka, da, val; | ^ dazniausias_sk.cpp:38:27: error: ‘int v::d’ is private within this context 38 | if (k<=dab->k && dab->d<=d) | ^ dazniausias_sk.cpp:6:12: note: declared private here 6 | int k, d, ka, da, val; | ^ dazniausias_sk.cpp:39:21: error: ‘int v::val’ is private within this context 39 | return dab->val; | ^~~ dazniausias_sk.cpp:6:23: note: declared private here 6 | int k, d, ka, da, val; | ^~~ dazniausias_sk.cpp:40:14: error: ‘int v::k’ is private within this context 40 | if (dab->k<k || d<dab->d) | ^ dazniausias_sk.cpp:6:9: note: declared private here 6 | int k, d, ka, da, val; | ^ dazniausias_sk.cpp:40:28: error: ‘int v::d’ is private within this context 40 | if (dab->k<k || d<dab->d) | ^ dazniausias_sk.cpp:6:12: note: declared private here 6 | int k, d, ka, da, val; | ^ dazniausias_sk.cpp:43:1: error: expected primary-expression before ‘}’ token 43 | } | ^ dazniausias_sk.cpp:42:11: error: expected ‘;’ before ‘}’ token 42 | return | ^ | ; 43 | } | ~ dazniausias_sk.cpp: At global scope: dazniausias_sk.cpp:47:1: error: expected initializer before ‘int’ 47 | int main() | ^~~

nr.resulttimemessage