Problem ljubomora
User yuanbin
Submission Time 2026-07-18 11:01:40
Score 0
Max Time N/A
Max Memory N/A

Compile Error

ljubomora.cpp: In function ‘int32_t main()’:
ljubomora.cpp:2:13: error: ‘logn’ was not declared in this scope; did you mean ‘logl’?
2 | #define int logn logn
| ^~~~
ljubomora.cpp:5:2: note: in expansion of macro ‘int’
5 | int kids, m;
| ^~~
ljubomora.cpp:6:7: error: ‘kids’ was not declared in this scope
6 | cin>>kids>>m;
| ^~~~
ljubomora.cpp:6:13: error: ‘m’ was not declared in this scope; did you mean ‘tm’?
6 | cin>>kids>>m;
| ^
| tm
ljubomora.cpp:7:12: error: template argument 2 is invalid
7 | vector<int> marb(m);
| ^
ljubomora.cpp:2:18: error: expected ‘;’ before ‘logn’
2 | #define int logn logn
| ^~~~
ljubomora.cpp:8:7: note: in expansion of macro ‘int’
8 | for (int i = 0; i<m; i++) cin>>marb[i];
| ^~~
ljubomora.cpp:8:18