Problem | growingtrees |
---|---|
User | shoryu386 |
Submission Time | 2023-08-04 10:44:25 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
growingtrees.cpp: In function ‘int main()’:
growingtrees.cpp:12:38: error: expected ‘;’ before ‘}’ token
12 | #define breakup(x) ({x/ROOTN, x%ROOTN})
| ^
growingtrees.cpp:63:34: note: in expansion of macro ‘breakup’
63 | pair<int, int> lastaffected = breakup(min(n-1, minblk*ROOTN + minloc + count - 1));
| ^~~~~~~
growingtrees.cpp:12:29: error: conversion from ‘long long int’ to non-scalar type ‘std::pair<long long int, long long int>’ requested
12 | #define breakup(x) ({x/ROOTN, x%ROOTN})
| ^
growingtrees.cpp:63:34: note: in expansion of macro ‘breakup’
63 | pair<int, int> lastaffected = breakup(min(n-1, minblk*ROOTN + minloc + count - 1));
| ^~~~~~~