Submission #42688

# Submission time Handle Problem Language Result Execution time Memory
42688 2018-03-02T17:10:39 Z iletavcioski Olivander (COCI18_olivander) C++14
Compilation error
0 ms 0 KB
#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;
}

Compilation message

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