Problem laptop
User Adam
Submission Time 2024-06-21 15:19:57
Score 0
Max Time N/A
Max Memory N/A

Compile Error

laptop.cpp: In function ‘int main()’:
laptop.cpp:8:5: error: expected ‘;’ before ‘M’
8 | cin M >> N >> T >> C;
| ^~
| ;
laptop.cpp: In lambda function:
laptop.cpp:18:9: error: expected ‘{’ before ‘[’ token
18 | if([N][C]<=M){
| ^
laptop.cpp: In function ‘int main()’:
laptop.cpp:18:9: error: no match for ‘operator[]’ (operand types are ‘main()::<lambda()>’ and ‘int’)
laptop.cpp:19:76: error: expected unqualified-id before ‘;’ token
19 | cout << "Pan will buy a laptop made by Papple that will cost him " << C.;
| ^
laptop.cpp: In lambda function:
laptop.cpp:26:9: error: expected ‘{’ before ‘[’ token
26 | if([N][C]<=M){
| ^
laptop.cpp: In function ‘int main()’:
laptop.cpp:26:9: error: no match for ‘operator[]’ (operand types are ‘main()::<lam