제출 #401366

#제출 시각아이디문제언어결과실행 시간메모리
401366irmuunCombo (IOI18_combo)C++17
컴파일 에러
0 ms0 KiB
#include "combo.h"
#include<bits/stdc++.h>
using anmespace std;
string p,t="ABXY",x;
int a,b,c,i,j,k,d,e,f,g,h;
string guess_sequence(int N){
  string p;
  for(i=0;i<4;i++){
    p="";
    p+=s[i];
    d=press(p);
    if(d==1){
      t.erase(t.begin()+i);
      break;
  	}
  }
  for(i=2;i<=N;i++){
    x=p;
    e=0;
    for(j=0;j<2;j++){
      p=x+t[j];
      d=press(p);
      if(d==i){
        e=1;
      }
    }
    if(e==0){
      p+=s[2];
    }
  }
  return p;
}

컴파일 시 표준 에러 (stderr) 메시지

combo.cpp:3:7: error: expected nested-name-specifier before 'anmespace'
    3 | using anmespace std;
      |       ^~~~~~~~~
combo.cpp:4:1: error: 'string' does not name a type; did you mean 'stdin'?
    4 | string p,t="ABXY",x;
      | ^~~~~~
      | stdin
combo.cpp:6:1: error: 'string' does not name a type; did you mean 'stdin'?
    6 | string guess_sequence(int N){
      | ^~~~~~
      | stdin