Код: Выделить всё
error: expected unqualified-id before ‘(’ token
362 | #define min(a,b) (((a) < (b)) ? (a) : (b))
| ^
Код: Выделить всё
/* min and max macros */
#ifndef NOMINMAX
#ifndef max
#define max(a,b) (((a) > (b)) ? (a) : (b))
#endif
#ifndef min
#define min(a,b) (((a) < (b)) ? (a) : (b))
#endif
#endif /* NOMINMAX */
Версия gcc — 11.4.0 (Ubuntu 11.4.0-1ubuntu1~22.04).
Подробнее здесь: https://stackoverflow.com/questions/792 ... fore-token