Problem | sale |
---|---|
User | PlayVoltz |
Submission Time | 2024-03-16 09:09:58 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
sale.cpp: In function ‘int32_t main()’:
sale.cpp:21:46: error: found ‘:’ in nested-name-specifier, expected ‘::’
21 | for (int i=0; i<n; ++i)ans+=(i<a?:vect[i].fi:vect[i].se);
| ^
| ::
sale.cpp:8:12: error: ‘first’ is not a class, namespace, or enumeration
8 | #define fi first
| ^~~~~
sale.cpp:21:44: note: in expansion of macro ‘fi’
21 | for (int i=0; i<n; ++i)ans+=(i<a?:vect[i].fi:vect[i].se);
| ^~