Problem colour
User shoryu386
Submission Time 2023-05-31 23:49:30
Score 0
Max Time N/A
Max Memory N/A

Compile Error

colour.cpp: In function ‘int main()’:
colour.cpp:25:12: error: expected primary-expression before ‘->’ token
25 | if (aaaa->second >= newval.first ){
| ^~
colour.cpp:24:27: error: expected ‘)’ before ‘;’ token
24 | #define aaaa prev(lptr);
| ^
colour.cpp:26:24: note: in expansion of macro ‘aaaa’
26 | newval.first = min(aaaa->first, newval.first);
| ^~~~
colour.cpp:26:23: note: to match this ‘(’
26 | newval.first = min(aaaa->first, newval.first);
| ^
colour.cpp:26:28: error: expected primary-expression before ‘->’ token
26 | newval.first = min(aaaa->first, newval.first);
| ^~
colour.cpp:24:27: error: expected ‘)’ before ‘;’ token
24 | #define aaaa prev(lptr);
| ^
colour.cpp:27:25: note: in expansion of m