Problem topical
User Lzr30
Submission Time 2025-03-21 15:52:36
Score 0
Max Time N/A
Max Memory N/A

Compile Error

topical.cpp: In function ‘int main()’:
topical.cpp:3:2: error: ‘cin’ was not declared in this scope
3 | cin >> n >> k;
| ^~~
topical.cpp:6:6: error: ‘i’ was not declared in this scope
6 | FL1(i,n){
| ^
topical.cpp:6:2: error: ‘FL1’ was not declared in this scope
6 | FL1(i,n){
| ^~~
topical.cpp:24:4: error: ‘cout’ was not declared in this scope
24 | cout << 1;
| ^~~~
topical.cpp:27:4: error: ‘cout’ was not declared in this scope
27 | cout << 0;
| ^~~~
topical.cpp:31:3: error: ‘pii’ was not declared in this scope
31 | pii k1[n+1];//req
| ^~~
topical.cpp:32:6: error: expected ‘;’ before ‘k2’
32 | pii k2[n+1];//gain
| ^~~
| ;
topical.cpp:39:8: error: ‘k1’ was not declared in this scope; did you mean ‘k’?
39 | sort(k1+1, k1+1+n);
| ^~
| k
topical.cp