Problem coins
User dacashew
Submission Time 2024-05-13 10:15:48
Score 0
Max Time N/A
Max Memory N/A

Compile Error

arnavaz.cpp:97:30: error: expected ‘,’ or ‘...’ before ‘b’
97 | vector<int> coin_flips(int[] b,int c){
| ^
arnavaz.cpp: In function ‘std::vector<long long int> coin_flips(long long int*)’:
arnavaz.cpp:99:10: error: ‘b’ was not declared in this scope
99 | iloop(0,b.size()){
| ^
arnavaz.cpp:67:35: note: in definition of macro ‘iloop’
67 | #define iloop(a,b) for(int i=a;i!=b;i+=(2*((int)(a<b))-1))
| ^
arnavaz.cpp:102:5: error: ‘c’ was not declared in this scope
102 | x^=c;
| ^
arnavaz.cpp:103:2: error: ‘b’ was not declared in this scope
103 | b[x]=!b[x];
| ^
arnavaz.cpp:104:11: error: could not convert ‘{b}’ from ‘<brace-enclosed initializer list>’ to ‘std::vector<long long int>’
104 | return {b};
| ^
| |
| <brace-enclosed initia