Problem lemonade
User LL
Submission Time 2025-12-12 15:03:53
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lemonade.cpp:1:2: error: invalid preprocessing directive #incldue; did you mean #include?
1 | #incldue <bits/stdc++.h>
| ^~~~~~~
| include
lemonade.cpp: In function ‘int main()’:
lemonade.cpp:7:2: error: ‘cin’ was not declared in this scope
7 | cin >> n >> d;
| ^~~
lemonade.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | #incldue <bits/stdc++.h>
lemonade.cpp:9:2: error: expected initializer before ‘pair’
9 | pair<double,int> arr[n];
| ^~~~
lemonade.cpp:11:21: error: ‘taste’ was not declared in this scope
11 | cin >> cost[i] >> taste[i];
| ^~~~~
lemonade.cpp:12:3: error: ‘arr’ was not declared in this scope
12 | arr[i] = {taste[i]/cost[i], i};
| ^~~
lemonade.cpp:14:7: error: ‘arr’ was not declare