Submission #1139178

#TimeUsernameProblemLanguageResultExecution timeMemory
1139178KasymKBinary Subsequences (info1cup17_binary)C++20
0.02 / 100
0 ms324 KiB
#include "bits/stdc++.h"
using namespace std;
#define ff first
#define ss second
#define all(v) v.begin(), v.end()
#define ll long long
#define pb push_back
#define pii pair<int, int>
#define pli pair<ll, int>
#define pll pair<ll, ll>
#define tr(i, c) for(auto i = c.begin(); i != c.end(); ++i)
#define wr puts("----------------")
template<class T>bool umin(T& a,T b){if(a>b){a=b;return 1;}return 0;}
template<class T>bool umax(T& a,T b){if(a<b){a=b;return 1;}return 0;}

int main(){
	int tt;
	scanf("%d", &tt);
	tt--;
	int k;
	scanf("%d", &k);
	printf("2\n0\n");
	while(tt--){
		int kk;
		scanf("%d", &kk);
		printf("-1\n-1\n");
	}
	return 0;
}

Compilation message (stderr)

binary.cpp: In function 'int main()':
binary.cpp:18:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
   18 |         scanf("%d", &tt);
      |         ~~~~~^~~~~~~~~~~
binary.cpp:21:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
   21 |         scanf("%d", &k);
      |         ~~~~~^~~~~~~~~~
binary.cpp:25:22: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
   25 |                 scanf("%d", &kk);
      |                 ~~~~~^~~~~~~~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...