Submission #299951

#TimeUsernameProblemLanguageResultExecution timeMemory
299951T0p_Watching (JOI13_watching)C++14
0 / 100
1 ms384 KiB
#include<bits/stdc++.h> using namespace std; long long arr[2020]; int main() { int n, p, q; scanf(" %d %d %d",&n,&p,&q); for(int i=1 ; i<=n ; i++) scanf(" %lld",&arr[i]); if(p+q >= n) printf("1\n"); else { } return 0; }

Compilation message (stderr)

watching.cpp: In function 'int main()':
watching.cpp:9:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
    9 |  scanf(" %d %d %d",&n,&p,&q);
      |  ~~~~~^~~~~~~~~~~~~~~~~~~~~~
watching.cpp:11:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   11 |   scanf(" %lld",&arr[i]);
      |   ~~~~~^~~~~~~~~~~~~~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...