Where is my error? Jungle camping challenge

Can you please tell me where is my error? when I try to compile the program it gives me the following error: No matching function for call to https://code.sololearn.com/cwrVDC82Iy55/?ref=app

3/26/2020 10:14:24 AM

María Isabel Lovera Hernández

2 Answers

New Answer


#include <iostream> #include <stdio.h> #include <string.h> using namespace std; char m[50]; char fw; int i=0; int main() { cin.getline(m,50); fw=m[0]; do { if(fw=='G') printf("Lion"); else if(fw=='S') printf("Snake"); else if(fw=='R') printf("Tiger"); else if(fw=='C') printf("Bird"); fw='k'; if(m[i]==' ') { fw=m[i+1]; printf(" "); } i++; } while(m[i]!='\0'); return 0; }