Problem eatinghealthy
User userwithuniquename2012
Submission Time 2025-08-28 16:12:32
Score 0
Max Time N/A
Max Memory N/A

Compile Error

eatinghealthy.cpp: In function ‘int main()’:
eatinghealthy.cpp:6:10: error: found ‘:’ in nested-name-specifier, expected ‘::’
6 | cin >> k:
| ^
| ::
eatinghealthy.cpp:6:9: error: ‘k’ has not been declared
6 | cin >> k:
| ^
eatinghealthy.cpp:8:14: error: ‘k’ was not declared in this scope
8 | if (a+b+c > k) and (a+b+c < k + k)
| ^
eatinghealthy.cpp:8:21: error: expected identifier before ‘(’ token
8 | if (a+b+c > k) and (a+b+c < k + k)
| ^
eatinghealthy.cpp:11:11: error: expected ‘}’ at end of input
11 | cout << "NO"
| ^~~~
eatinghealthy.cpp:4:12: note: to match this ‘{’
4 | int main() {
| ^