Problem flamethrower
User christal
Submission Time 2023-12-06 16:09:07
Score 0
Max Time N/A
Max Memory N/A

Compile Error

flamethrower.cpp: In function ‘int main()’:
flamethrower.cpp:10:3: error: expected initializer before ‘cin’
10 | cin >> N >> K;
| ^~~
flamethrower.cpp:12:10: error: ‘d’ was not declared in this scope
12 | cin >> d[i];
| ^
flamethrower.cpp:14:7: error: ‘d’ was not declared in this scope
14 | sort(d, d+a, greater<int>());
| ^
flamethrower.cpp:14:12: error: ‘a’ was not declared in this scope
14 | sort(d, d+a, greater<int>());
| ^