Problem | timeleap |
---|---|
User | Pan |
Submission Time | 2024-07-08 00:10:44 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
timeleap.cpp:46:45: error: ISO C++ forbids declaration of ‘data’ with no type [-fpermissive]
46 | data(ll a = 0, ll b = 0, ll c = 0, ll d = 0) {lot = a, hit = b, time = c, pw = d;}
| ^
timeleap.cpp:47:2: error: ‘data’ does not name a type
47 | data operator +(const data& other)
| ^~~~
timeleap.cpp: In constructor ‘node::node(ll, ll)’:
timeleap.cpp:83:26: error: no match for ‘operator+’ (operand types are ‘road’ and ‘road’)
83 | val = l->val + r->val;
| ~~~~~~ ^ ~~~~~~
| | |
| road road
In file included from /usr/include/c++/9/bits/stl_algobase.h:67,
from /usr/include/c++/9/bits/specfun.h:45,
from /usr/include/c++/9/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:41,
from timeleap.c