Today I tried to solve
this problem
I wrote this
code
But it says compilation error.What do I need to do??? Help please!
| # | User | Rating |
|---|---|---|
| 1 | Kevin114514 | 3722 |
| 2 | Benq | 3676 |
| 3 | jiangly | 3640 |
| 4 | turmax | 3450 |
| 5 | tourist | 3408 |
| 6 | strapple | 3360 |
| 7 | Um_nik | 3354 |
| 8 | squareOf105 | 3348 |
| 9 | maroonrk | 3196 |
| 10 | idontwannadothis…e | 3191 |
| # | User | Contrib. |
|---|---|---|
| 1 | maroonrk | 153 |
| 2 | Qingyu | 152 |
| 3 | nik_exists | 151 |
| 4 | AmShZ | 147 |
| 4 | maspy | 147 |
| 6 | Um_nik | 143 |
| 7 | Errichto | 139 |
| 8 | adamant | 136 |
| 9 | BledDest | 134 |
| 10 | AksLolCoding | 132 |
How to solve this kind of problems???
Today I tried to solve
I wrote this
#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define ff first
#define ss second
#define pb push_back
string guess_sequence(int N){
string ans="";
for(int i=1;i<=N;i++){
int z=press(ans+'A');
int k=ans.size();
if(z==k+1){
ans+='A';
continue;
}
z=press(ans+'B');
if(z==k+1){
ans+='B';
continue;
}
z=press(ans+'X');
if(z==k+1){
ans+='X';
continue;
}
z=press(ans+'Y');
if(z==k+1){
ans+='Y';
continue;
}
}
return ans;
}
But it says compilation error.What do I need to do??? Help please!
| Rev. | Lang. | By | When | Δ | Comment | |
|---|---|---|---|---|---|---|
| en6 |
|
I_love_MahmytM | 2024-06-13 12:09:11 | 20 | Tiny change: 'tdc++.h>\n#include "combo.h"\nusing na' -> 'tdc++.h>\nusing na' | |
| en5 |
|
I_love_MahmytM | 2024-06-13 06:56:27 | 20 | Tiny change: 'tdc++.h>\nusing na' -> 'tdc++.h>\n#include "combo.h"\nusing na' | |
| en4 |
|
I_love_MahmytM | 2024-06-12 19:38:00 | 4 | ||
| en3 |
|
I_love_MahmytM | 2024-06-12 19:31:55 | 41 | Tiny change: 'lp please!\nI thought right code is 5th from below!' -> 'lp please!' | |
| en2 |
|
I_love_MahmytM | 2024-06-12 19:26:59 | 2 | Tiny change: 'guess_sequance(int n)' -> 'guess_sequence(int n)' | |
| en1 |
|
I_love_MahmytM | 2024-06-12 18:52:53 | 895 | Initial revision (published) |
| Name |
|---|


