Problem numberbuilding
User andthatsallshewrote
Submission Time 2025-07-29 16:21:36
Score 0
Max Time N/A
Max Memory N/A

Compile Error

numberbuilding.cpp: In function ‘int main()’:
numberbuilding.cpp:8:16: error: expected initializer before ‘+’ token
8 | string ans + "";
| ^
numberbuilding.cpp:18:5: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
18 | ans += to_string(i);
| ^~~
| abs
numberbuilding.cpp:24:10: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
24 | cout << ans;
| ^~~
| abs