Submission #42688

#TimeUsernameProblemLanguageResultExecution timeMemory
42688iletavcioskiOlivander (COCI18_olivander)C++14
Compilation error
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; }

Compilation message (stderr)

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