Submission #777632

#TimeUsernameProblemLanguageResultExecution timeMemory
77763279brueCard Scoring (CCO19_day2problem1)C++17
1 / 100
60 ms6184 KiB
#include <bits/stdc++.h> using namespace std; typedef long long ll; int k, n; int arr[1000002]; int main(){ scanf("%d %d", &k, &n); for(int i=1; i<=n; i++) scanf("%d", &arr[i]); if(k==2){ printf("%d", n); return 0; } }

Compilation message (stderr)

Main.cpp: In function 'int main()':
Main.cpp:11:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
   11 |     scanf("%d %d", &k, &n);
      |     ~~~~~^~~~~~~~~~~~~~~~~
Main.cpp:12:34: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
   12 |     for(int i=1; i<=n; i++) scanf("%d", &arr[i]);
      |                             ~~~~~^~~~~~~~~~~~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...