제출 #299951

#제출 시각아이디문제언어결과실행 시간메모리
299951T0p_구경하기 (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;
}

컴파일 시 표준 에러 (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...