Language: C++

514
< 2 0 1000
< 2 1 1001
< 1000 1001 1002
+ 1000 1002 3
+ 3 3 4
+ 3 4 5
+ 3 5 6
+ 3 6 7
+ 3 7 8
+ 3 8 9
+ 3 9 10
+ 3 10 11
< 2 0 12
< 2 1 13
+ 12 13 14
< 2 0 15
< 3 1 16
+ 15 16 17
< 2 0 18
< 4 1 19
+ 18 19 20
< 2 0 21
< 5 1 22
+ 21 22 23
< 2 0 24
< 6 1 25
+ 24 25 26
< 2 0 27
< 7 1 28
+ 27 28 29
< 2 0 30
< 8 1 31
+ 30 31 32
< 2 0 33
< 9 1 34
+ 33 34 35
< 2 0 36
< 10 1 37
+ 36 37 38
< 2 0 39
< 11 1 40
+ 39 40 41
< 3 0 42
< 2 1 43
+ 42 43 44
< 3 0 45
< 3 1 46
+ 45 46 47
< 3 0 48
< 4 1 49
+ 48 49 50
< 3 0 51
< 5 1 52
+ 51 52 53
< 3 0 54
< 6 1 55
+ 54 55 56
< 3 0 57
< 7 1 58
+ 57 58 59
< 3 0 60
< 8 1 61
+ 60 61 62
< 3 0 63
< 9 1 64
+ 63 64 65
< 3 0 66
< 10 1 67
+ 66 67 68
< 3 0 69
< 11 1 70
+ 69 70 71
< 4 0 72
< 2 1 73
+ 72 73 74
< 4 0 75
< 3 1 76
+ 75 76 77
< 4 0 78
< 4 1 79
+ 78 79 80
< 4 0 81
< 5 1 82
+ 81 82 83
< 4 0 84
< 6 1 85
+ 84 85 86
< 4 0 87
< 7 1 88
+ 87 88 89
< 4 0 90
< 8 1 91
+ 90 91 92
< 4 0 93
< 9 1 94
+ 93 94 95
< 4 0 96
< 10 1 97
+ 96 97 98
< 4 0 99
< 11 1 100
+ 99 100 101
< 5 0 102
< 2 1 103
+ 102 103 104
< 5 0 105
< 3 1 106
+ 105 106 107
< 5 0 108
< 4 1 109
+ 108 109 110
< 5 0 111
< 5 1 112
+ 111 112 113
< 5 0 114
< 6 1 115
+ 114 115 116
< 5 0 117
< 7 1 118
+ 117 118 119
< 5 0 120
< 8 1 121
+ 120 121 122
< 5 0 123
< 9 1 124
+ 123 124 125
< 5 0 126
< 10 1 127
+ 126 127 128
< 5 0 129
< 11 1 130
+ 129 130 131
< 6 0 132
< 2 1 133
+ 132 133 134
< 6 0 135
< 3 1 136
+ 135 136 137
< 6 0 138
< 4 1 139
+ 138 139 140
< 6 0 141
< 5 1 142
+ 141 142 143
< 6 0 144
< 6 1 145
+ 144 145 146
< 6 0 147
< 7 1 148
+ 147 148 149
< 6 0 150
< 8 1 151
+ 150 151 152
< 6 0 153
< 9 1 154
+ 153 154 155
< 6 0 156
< 10 1 157
+ 156 157 158
< 6 0 159
< 11 1 160
+ 159 160 161
< 7 0 162
< 2 1 163
+ 162 163 164
< 7 0 165
< 3 1 166
+ 165 166 167
< 7 0 168
< 4 1 169
+ 168 169 170
< 7 0 171
< 5 1 172
+ 171 172 173
< 7 0 174
< 6 1 175
+ 174 175 176
< 7 0 177
< 7 1 178
+ 177 178 179
< 7 0 180
< 8 1 181
+ 180 181 182
< 7 0 183
< 9 1 184
+ 183 184 185
< 7 0 186
< 10 1 187
+ 186 187 188
< 7 0 189
< 11 1 190
+ 189 190 191
< 8 0 192
< 2 1 193
+ 192 193 194
< 8 0 195
< 3 1 196
+ 195 196 197
< 8 0 198
< 4 1 199
+ 198 199 200
< 8 0 201
< 5 1 202
+ 201 202 203
< 8 0 204
< 6 1 205
+ 204 205 206
< 8 0 207
< 7 1 208
+ 207 208 209
< 8 0 210
< 8 1 211
+ 210 211 212
< 8 0 213
< 9 1 214
+ 213 214 215
< 8 0 216
< 10 1 217
+ 216 217 218
< 8 0 219
< 11 1 220
+ 219 220 221
< 9 0 222
< 2 1 223
+ 222 223 224
< 9 0 225
< 3 1 226
+ 225 226 227
< 9 0 228
< 4 1 229
+ 228 229 230
< 9 0 231
< 5 1 232
+ 231 232 233
< 9 0 234
< 6 1 235
+ 234 235 236
< 9 0 237
< 7 1 238
+ 237 238 239
< 9 0 240
< 8 1 241
+ 240 241 242
< 9 0 243
< 9 1 244
+ 243 244 245
< 9 0 246
< 10 1 247
+ 246 247 248
< 9 0 249
< 11 1 250
+ 249 250 251
< 10 0 252
< 2 1 253
+ 252 253 254
< 10 0 255
< 3 1 256
+ 255 256 257
< 10 0 258
< 4 1 259
+ 258 259 260
< 10 0 261
< 5 1 262
+ 261 262 263
< 10 0 264
< 6 1 265
+ 264 265 266
< 10 0 267
< 7 1 268
+ 267 268 269
< 10 0 270
< 8 1 271
+ 270 271 272
< 10 0 273
< 9 1 274
+ 273 274 275
< 10 0 276
< 10 1 277
+ 276 277 278
< 10 0 279
< 11 1 280
+ 279 280 281
< 11 0 282
< 2 1 283
+ 282 283 284
< 11 0 285
< 3 1 286
+ 285 286 287
< 11 0 288
< 4 1 289
+ 288 289 290
< 11 0 291
< 5 1 292
+ 291 292 293
< 11 0 294
< 6 1 295
+ 294 295 296
< 11 0 297
< 7 1 298
+ 297 298 299
< 11 0 300
< 8 1 301
+ 300 301 302
< 11 0 303
< 9 1 304
+ 303 304 305
< 11 0 306
< 10 1 307
+ 306 307 308
< 11 0 309
< 11 1 310
+ 309 310 311
< 3 14 1000
+ 1000 2 2
< 3 17 1000
+ 1000 2 2
< 3 20 1000
+ 1000 2 2
< 3 23 1000
+ 1000 2 2
< 3 26 1000
+ 1000 2 2
< 3 29 1000
+ 1000 2 2
< 3 32 1000
+ 1000 2 2
< 3 35 1000
+ 1000 2 2
< 3 38 1000
+ 1000 2 2
< 3 41 1000
+ 1000 2 2
< 3 44 1000
+ 1000 2 2
< 3 47 1000
+ 1000 2 2
< 3 50 1000
+ 1000 2 2
< 3 53 1000
+ 1000 2 2
< 3 56 1000
+ 1000 2 2
< 3 59 1000
+ 1000 2 2
< 3 62 1000
+ 1000 2 2
< 3 65 1000
+ 1000 2 2
< 3 68 1000
+ 1000 2 2
< 3 71 1000
+ 1000 2 2
< 3 74 1000
+ 1000 2 2
< 3 77 1000
+ 1000 2 2
< 3 80 1000
+ 1000 2 2
< 3 83 1000
+ 1000 2 2
< 3 86 1000
+ 1000 2 2
< 3 89 1000
+ 1000 2 2
< 3 92 1000
+ 1000 2 2
< 3 95 1000
+ 1000 2 2
< 3 98 1000
+ 1000 2 2
< 3 101 1000
+ 1000 2 2
< 3 104 1000
+ 1000 2 2
< 3 107 1000
+ 1000 2 2
< 3 110 1000
+ 1000 2 2
< 3 113 1000
+ 1000 2 2
< 3 116 1000
+ 1000 2 2
< 3 119 1000
+ 1000 2 2
< 3 122 1000
+ 1000 2 2
< 3 125 1000
+ 1000 2 2
< 3 128 1000
+ 1000 2 2
< 3 131 1000
+ 1000 2 2
< 3 134 1000
+ 1000 2 2
< 3 137 1000
+ 1000 2 2
< 3 140 1000
+ 1000 2 2
< 3 143 1000
+ 1000 2 2
< 3 146 1000
+ 1000 2 2
< 3 149 1000
+ 1000 2 2
< 3 152 1000
+ 1000 2 2
< 3 155 1000
+ 1000 2 2
< 3 158 1000
+ 1000 2 2
< 3 161 1000
+ 1000 2 2
< 3 164 1000
+ 1000 2 2
< 3 167 1000
+ 1000 2 2
< 3 170 1000
+ 1000 2 2
< 3 173 1000
+ 1000 2 2
< 3 176 1000
+ 1000 2 2
< 3 179 1000
+ 1000 2 2
< 3 182 1000
+ 1000 2 2
< 3 185 1000
+ 1000 2 2
< 3 188 1000
+ 1000 2 2
< 3 191 1000
+ 1000 2 2
< 3 194 1000
+ 1000 2 2
< 3 197 1000
+ 1000 2 2
< 3 200 1000
+ 1000 2 2
< 3 203 1000
+ 1000 2 2
< 3 206 1000
+ 1000 2 2
< 3 209 1000
+ 1000 2 2
< 3 212 1000
+ 1000 2 2
< 3 215 1000
+ 1000 2 2
< 3 218 1000
+ 1000 2 2
< 3 221 1000
+ 1000 2 2
< 3 224 1000
+ 1000 2 2
< 3 227 1000
+ 1000 2 2
< 3 230 1000
+ 1000 2 2
< 3 233 1000
+ 1000 2 2
< 3 236 1000
+ 1000 2 2
< 3 239 1000
+ 1000 2 2
< 3 242 1000
+ 1000 2 2
< 3 245 1000
+ 1000 2 2
< 3 248 1000
+ 1000 2 2
< 3 251 1000
+ 1000 2 2
< 3 254 1000
+ 1000 2 2
< 3 257 1000
+ 1000 2 2
< 3 260 1000
+ 1000 2 2
< 3 263 1000
+ 1000 2 2
< 3 266 1000
+ 1000 2 2
< 3 269 1000
+ 1000 2 2
< 3 272 1000
+ 1000 2 2
< 3 275 1000
+ 1000 2 2
< 3 278 1000
+ 1000 2 2
< 3 281 1000
+ 1000 2 2
< 3 284 1000
+ 1000 2 2
< 3 287 1000
+ 1000 2 2
< 3 290 1000
+ 1000 2 2
< 3 293 1000
+ 1000 2 2
< 3 296 1000
+ 1000 2 2
< 3 299 1000
+ 1000 2 2
< 3 302 1000
+ 1000 2 2
< 3 305 1000
+ 1000 2 2
< 3 308 1000
+ 1000 2 2
< 3 311 1000
+ 1000 2 2
< 3 314 1000
+ 1000 2 2


Compiler output:
a.cc:1:1: error: expected unqualified-id before numeric constant
    1 | 514
      | ^~~