Problem fatty
User YH
Submission Time 2026-06-21 10:23:38
Score 0
Max Time N/A
Max Memory N/A

Compile Error

fatty.cpp: In function ‘int main()’:
fatty.cpp:21:8: error: expected primary-expression before ‘}’ token
21 | else }
| ^
fatty.cpp:22:23: error: ‘i’ was not declared in this scope
22 | min2 = min(min2, c[i]);
| ^
fatty.cpp: At global scope:
fatty.cpp:24:2: error: expected declaration before ‘}’ token
24 | }
| ^
fatty.cpp:26:2: error: ‘cout’ does not name a type
26 | cout << min1 + min2 << "\n";
| ^~~~
fatty.cpp:28:2: error: expected unqualified-id before ‘return’
28 | return 0;
| ^~~~~~
fatty.cpp:29:1: error: expected declaration before ‘}’ token
29 | }
| ^