Problem | laptop |
---|---|
User | Rafael |
Submission Time | 2024-06-21 15:14:42 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
laptop.cpp: In function ‘int main()’:
laptop.cpp:18:9: error: ‘else’ without a previous ‘if’
18 | else if ((t==0) && (m>=c)){
| ^~~~
laptop.cpp:21:9: error: expected ‘}’ before ‘else’
21 | else{
| ^~~~
laptop.cpp:18:35: note: to match this ‘{’
18 | else if ((t==0) && (m>=c)){
| ^
laptop.cpp:22:25: error: expected ‘;’ before ‘}’ token
22 | cout << "NA"
| ^
| ;
23 | }
| ~
laptop.cpp: At global scope:
laptop.cpp:26:1: error: expected declaration before ‘}’ token
26 | }
| ^