Problem fatty
User skzy09
Submission Time 2026-06-24 11:06:37
Score 0
Max Time N/A
Max Memory N/A

Compile Error

fatty.cpp: In function ‘int main()’:
fatty.cpp:16:17: error: expected ‘;’ before ‘)’ token
16 | for (T[i] = T[j]){
| ^
| ;
fatty.cpp:26:1: error: expected primary-expression before ‘}’ token
26 | }
| ^
fatty.cpp:25:19: error: expected ‘)’ before ‘}’ token
25 | cout << totalcost;
| ^
| )
26 | }
| ~
fatty.cpp:16:5: note: to match this ‘(’
16 | for (T[i] = T[j]){
| ^
fatty.cpp:26:1: error: expected primary-expression before ‘}’ token
26 | }
| ^