Problem moosic
User chenweilian
Submission Time 2023-09-10 17:30:51
Score 0
Max Time N/A
Max Memory N/A

Compile Error

moosic.cpp:72:14: error: macro "REP" passed 3 arguments, but takes just 2
72 | REP(i,1,n) scanf("%d", a+i);
| ^
moosic.cpp:28: note: macro "REP" defined here
28 | #define REP(i, n) FOR(i, 0, n)
|
moosic.cpp:73:14: error: macro "REP" passed 3 arguments, but takes just 2
73 | REP(i,1,n) scanf("%d", t+i), r[i]=pii(t[i]/2,i);
| ^
moosic.cpp:28: note: macro "REP" defined here
28 | #define REP(i, n) FOR(i, 0, n)
|
moosic.cpp:75:14: error: macro "REP" passed 3 arguments, but takes just 2
75 | REP(i,1,n) {
| ^
moosic.cpp:28: note: macro "REP" defined here
28 | #define REP(i, n) FOR(i, 0, n)
|
moosic.cpp: In function ‘int main()’:
moosic.cpp:72:5: error: ‘REP’ was not declared in this scope
72 | REP(i,1,n) scanf("%d", a+i);
| ^~~
moosic.cpp:73:8: error: expected ‘;’ before ‘scanf’
73 | REP(i,1,n)