Submission #148024

# Submission time Handle Problem Language Result Execution time Memory
148024 2019-08-31T11:28:06 Z llg(#3728, ioilolcom) Play Onwards (FXCUP4_onward) C++17
Compilation error
0 ms 0 KB
#include "make.h"
#include <bits/stdc++.h>
using namespace std;
std::string MakeWord(int N, int M, std::vector<std::string> Dict) {
	string ans="";
	  string c=Dict[0];
		  for(int i=0;i<(int)c.length();i++){
       if(c[i]=='z'){
				    ans+='b';
			 }
			  if(c[i]=='y'){
					 ans+='a'
				}
			  else{
					 char d=(char)c[i]+2;
					 ans+=d;
				}
			}
			 return ans;
}
#include "guess.h"
#include <bits/stdc++.h>
using namespace std;
std::string GuessWord(int M, std::string YH){
	string ans="";
	  string c=YH;
		  for(int i=0;i<(int)c.length();i++){
				if(c[i]=='z'){
 				    ans+='b';
 			 }
 			  if(c[i]=='y'){
 					 ans+='a'
 				}
			  else{
					 char d=(char)c[i]+2;
					 ans+=d;
				}
			}
			 return ans;
}

Compilation message

make.cpp: In function 'std::__cxx11::string MakeWord(int, int, std::vector<std::__cxx11::basic_string<char> >)':
make.cpp:13:5: error: expected ';' before '}' token
     }
     ^

guess.cpp: In function 'std::__cxx11::string GuessWord(int, std::__cxx11::string)':
guess.cpp:13:6: error: expected ';' before '}' token
      }
      ^