Problem childsetter4
User AndyChen
Submission Time 2026-07-30 21:08:01
Score 0
Max Time N/A
Max Memory N/A

Compile Error

childsetter4.cpp: In function ‘int main()’:
childsetter4.cpp:3:18: error: declaration does not declare anything [-fpermissive]
3 | #define int long long;
| ^~~~
childsetter4.cpp:8:5: note: in expansion of macro ‘int’
8 | int n;
| ^~~
childsetter4.cpp:8:9: error: ‘n’ was not declared in this scope
8 | int n;
| ^
childsetter4.cpp:3:18: error: declaration does not declare anything [-fpermissive]
3 | #define int long long;
| ^~~~
childsetter4.cpp:10:10: note: in expansion of macro ‘int’
10 | for (int i = 0; i < n; i++){
| ^~~
childsetter4.cpp:10:14: error: ‘i’ was not declared in this scope
10 | for (int i = 0; i < n; i++){
| ^
childsetter4.cpp:10:26: error: expected ‘)’ before ‘;’ token
10 | for (int i = 0; i < n; i++){
| ~ ^
|