Submission #934659

#TimeUsernameProblemLanguageResultExecution timeMemory
934659IsamNadan (COCI18_nadan)C++17
50 / 50
1 ms604 KiB
#include<bits/stdc++.h> using namespace std; int K, N; signed main(){ ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0); cin >> K >> N; for(register int i = 1; i < N; ++i){ cout << i << '\n', K -= i; } cout << K << '\n'; return 0; }

Compilation message (stderr)

nadan.cpp: In function 'int main()':
nadan.cpp:10:19: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
   10 |  for(register int i = 1; i < N; ++i){
      |                   ^
#Verdict Execution timeMemoryGrader output
Fetching results...