Problem compleecode
User trowler
Submission Time 2024-05-24 23:46:38
Score 0
Max Time N/A
Max Memory N/A

Compile Error

compleecode.cpp:27:11: error: expected ‘,’ or ‘...’ before ‘.’ token
27 | #define v.begin() x
| ^
compleecode.cpp:35:32: note: in expansion of macro ‘v’
35 | vector<int> solve3(vector<int> v){
| ^
compleecode.cpp: In function ‘std::vector<int> solve3(std::vector<int>)’:
compleecode.cpp:27:11: error: expected primary-expression before ‘.’ token
27 | #define v.begin() x
| ^
compleecode.cpp:38:11: note: in expansion of macro ‘v’
38 | long z = v.size(), i = z * z - 1;
| ^
compleecode.cpp:39:8: error: ‘i’ was not declared in this scope
39 | while(i--)if(v[i / z] > v[i % z])swap(v[i / z], v[i % z]);
| ^
compleecode.cpp:27:11: error: expected primary-expression before ‘.’ token
27 | #define v.begin() x
| ^
compleecode.cpp:39:15: note: in expansion of macro ‘v’
39 | whi