제출 #472484

#제출 시각아이디문제언어결과실행 시간메모리
472484MamdouhNNadan (COCI18_nadan)C++14
50 / 50
1 ms292 KiB
#include<bits/stdc++.h> using namespace std; #define int long long #define endl "\n" main() { int n,k; cin>>k>>n; for(int i=1;i<n;i++) { cout<<i<<endl; k-=i; } cout<<k<<endl; return 0; }

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

nadan.cpp:6:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    6 | main()
      | ^~~~
#Verdict Execution timeMemoryGrader output
Fetching results...