Problem supermarket
User Akshat369
Submission Time 2024-01-12 14:37:55
Score 0
Max Time N/A
Max Memory N/A

Compile Error

supermarket.cpp:5:5: error: expected unqualified-id before ‘for’
5 | for(int l = 1 ; l <= n ; l++){
| ^~~
supermarket.cpp:5:21: error: ‘l’ does not name a type
5 | for(int l = 1 ; l <= n ; l++){
| ^
supermarket.cpp:5:30: error: ‘l’ does not name a type
5 | for(int l = 1 ; l <= n ; l++){
| ^
supermarket.cpp:59:5: error: ‘cout’ does not name a type
59 | cout<<ans<<endl;
| ^~~~
supermarket.cpp:61:1: error: expected declaration before ‘}’ token
61 | }
| ^
supermarket.cpp:63:1: error: ‘int32_t’ does not name a type
63 | int32_t main() {
| ^~~~~~~