Problem | kfc |
---|---|
User | Xiaoyang |
Submission Time | 2023-01-23 23:31:17 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
kfc.cpp: In function ‘int main()’:
kfc.cpp:12:20: error: expected ‘,’ or ‘;’ before ‘for’
12 | #define rep(i,a,b) for (int i=a;i<(b);i++)
| ^~~
kfc.cpp:30:2: note: in expansion of macro ‘rep’
30 | rep(i,1,n+1){
| ^~~
kfc.cpp:30:6: error: ‘i’ was not declared in this scope
30 | rep(i,1,n+1){
| ^
kfc.cpp:12:33: note: in definition of macro ‘rep’
12 | #define rep(i,a,b) for (int i=a;i<(b);i++)
| ^