Problem eatinghealthy
User Surgemain
Submission Time 2025-08-28 16:20:16
Score 0
Max Time N/A
Max Memory N/A

Compile Error

eatinghealthy.cpp: In function ‘int main()’:
eatinghealthy.cpp:5:5: error: declaration does not declare anything [-fpermissive]
5 | int ;a, b, c, k;
| ^~~
eatinghealthy.cpp:5:10: error: ‘a’ was not declared in this scope
5 | int ;a, b, c, k;
| ^
eatinghealthy.cpp:5:13: error: ‘b’ was not declared in this scope
5 | int ;a, b, c, k;
| ^
eatinghealthy.cpp:5:16: error: ‘c’ was not declared in this scope
5 | int ;a, b, c, k;
| ^
eatinghealthy.cpp:5:19: error: ‘k’ was not declared in this scope
5 | int ;a, b, c, k;
| ^
eatinghealthy.cpp:8:16: error: expected primary-expression before ‘||’ token
8 | if(a+b+c > k) || (a+b+c=k+k){
| ^~
eatinghealthy.cpp:11:14: error: expected ‘}’ at end of input
11 | cout<<"NO";}
| ^
eatinghealthy.cpp:4:12: note: