Problem | eatinghealthy |
---|---|
User | Surgemain |
Submission Time | 2025-08-28 16:20:46 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
eatinghealthy.cpp: In function ‘int main()’:
eatinghealthy.cpp:5:9: error: expected unqualified-id before ‘=’ token
5 | int = a, b, c, k;
| ^
eatinghealthy.cpp:6:12: error: ‘k’ was not declared in this scope
6 | cin >> k;
| ^
eatinghealthy.cpp:7:9: error: ‘a’ was not declared in this scope
7 | cin >> a, b, c;
| ^
eatinghealthy.cpp:7:12: error: ‘b’ was not declared in this scope
7 | cin >> a, b, c;
| ^
eatinghealthy.cpp:7:15: error: ‘c’ was not declared in this scope
7 | cin >> a, b, c;
| ^
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: to match this