Paskaitų kambariai

Taškai: 0

Compile: FAIL

paskaitu_kambariai.cpp:83:1: error: unterminated comment 83 | /*lygu lygu - n | ^ paskaitu_kambariai.cpp:8:18: error: ‘id’ has not been declared 8 | int dfs(int par, id) | ^~ paskaitu_kambariai.cpp: In function ‘int dfs(int, int)’: paskaitu_kambariai.cpp:11:8: error: ‘id’ was not declared in this scope 11 | dv[id]=1; | ^~ paskaitu_kambariai.cpp:18:13: error: ‘d’ was not declared in this scope 18 | d[id]+=d[i]; | ^ paskaitu_kambariai.cpp:20:1: warning: no return statement in function returning non-void [-Wreturn-type] 20 | } | ^ paskaitu_kambariai.cpp: In function ‘int rastLca(int, int)’: paskaitu_kambariai.cpp:36:38: error: ‘bitLif’ was not declared in this scope; did you mean ‘bitLift’? 36 | if (bitLift(a, gylis[a]-mi)==bitLif(b, gylis[b]-mi)) | ^~~~~~ | bitLift paskaitu_kambariai.cpp: In function ‘int main()’: paskaitu_kambariai.cpp:77:28: error: too few arguments to function ‘int bitLift(int, int)’ 77 | cout<<n-bitLift(gylis[lca]-gylis[a]-1)-bitLift(gylis[lca]-gylis[a]-1)<<"\n"; | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ paskaitu_kambariai.cpp:22:5: note: declared here 22 | int bitLift(int a, int n) | ^~~~~~~ paskaitu_kambariai.cpp:77:59: error: too few arguments to function ‘int bitLift(int, int)’ 77 | cout<<n-bitLift(gylis[lca]-gylis[a]-1)-bitLift(gylis[lca]-gylis[a]-1)<<"\n"; | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ paskaitu_kambariai.cpp:22:5: note: declared here 22 | int bitLift(int a, int n) | ^~~~~~~ paskaitu_kambariai.cpp:80:5: error: expected primary-expression before ‘}’ token 80 | } | ^

nr.resulttimemessage