Submission #95549

#TimeUsernameProblemLanguageResultExecution timeMemory
95549kimcodingNadan (COCI18_nadan)C++17
50 / 50
2 ms376 KiB
#include <cstdio> int main() { int k, n; scanf("%d %d", &k, &n); for (int i = 1; i < n; i++) { printf("%d\n", i); k -= i; } printf("%d\n", k); return 0; }

Compilation message (stderr)

nadan.cpp: In function 'int main()':
nadan.cpp:4:17: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  int k, n; scanf("%d %d", &k, &n);
            ~~~~~^~~~~~~~~~~~~~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...