제출 #884647

#제출 시각아이디문제언어결과실행 시간메모리
884647vjudge1Cluedo (IOI10_cluedo)C++17
컴파일 에러
0 ms0 KiB
#include "grader.h" #include "cluedo.h" #include<bits/stdc++.h> #define fastio ios_base::sync_with_stdio(0); cin.tie(0); #define sz(x) ll(x.size()) #define all(x) x.begin(),x.end() #define pb push_back #define ff first #define ss second using namespace std; typedef long long ll; const ll MAX=1000000; const ll mod=1e9+7; map<int,int> pos; int A[MAX]; void Solve(){ A[1]=1; A[2]=1; A[3]=1; int x=0; do{ x=Theory(A[1],A[2],A[3]); A[x]++; }while(x) return; }

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

cluedo.cpp: In function 'void Solve()':
cluedo.cpp:24:13: error: expected ';' before 'return'
   24 |    }while(x)
      |             ^
      |             ;
   25 |    return;
      |    ~~~~~~