제출 #42688

#제출 시각아이디문제언어결과실행 시간메모리
42688iletavcioskiOlivander (COCI18_olivander)C++14
컴파일 에러
0 ms0 KiB

#include <iostream>
#include <vector>
using namespace std;
typedef long long ll;
int main()
{
    int n;
    cin>>n;
    for(int i=100;i>=0;i++)
    {
        int br=364*i;
        int b=n;
        b-=br;
        if(b<0)
            return;
        if(b%1092==0)
        {
            cout<<i<<" "<<b/1092<<endl;
            return 0;
        }
    }
    return 0;
}

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

olivander.cpp: In function 'int main()':
olivander.cpp:16:13: error: return-statement with no value, in function returning 'int' [-fpermissive]
             return;
             ^