Problem eatinghealthy
User ilovepythonandhatecplusplus
Submission Time 2025-08-29 17:29:23
Score 0
Max Time N/A
Max Memory N/A

Compile Error

eatinghealthy.cpp: In function ‘int main()’:
eatinghealthy.cpp:7:5: error: expected initializer before ‘cin’
7 | cin>>a>>b>>c>>d;
| ^~~
eatinghealthy.cpp:8:17: error: ‘d’ was not declared in this scope
8 | if ((a+b+c)<d)){
| ^
eatinghealthy.cpp:8:19: error: expected primary-expression before ‘)’ token
8 | if ((a+b+c)<d)){
| ^
eatinghealthy.cpp:11:17: error: expected ‘;’ before ‘}’ token
11 | }cout<<"YES"
| ^
| ;
12 | }
| ~