Submission #299951

# Submission time Handle Problem Language Result Execution time Memory
299951 2020-09-16T04:03:48 Z T0p_ Watching (JOI13_watching) C++14
0 / 100
1 ms 384 KB
#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

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 time Memory Grader output
1 Incorrect 0 ms 256 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 384 KB Output isn't correct
2 Halted 0 ms 0 KB -