Submission #215880

#TimeUsernameProblemLanguageResultExecution timeMemory
215880SamAndFire drill (LMIO18_sauga)C++17
21.18 / 100
65 ms4984 KiB
#include <bits/stdc++.h> using namespace std; #define m_p make_pair const int N = 1003; int tt, n, ss; vector<int> a[N]; int main() { scanf("%d%d%d", &tt, &n, &ss); for (int i = 1; i <= n; ++i) { int q; scanf("%d", &q); while (q--) { int x; scanf("%d", &x); a[i].push_back(x); } } for (int i = 1; i <= n; ++i) printf("%d\n", i); return 0; }

Compilation message (stderr)

sauga.cpp: In function 'int main()':
sauga.cpp:11:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d%d%d", &tt, &n, &ss);
     ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
sauga.cpp:15:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
         scanf("%d", &q);
         ~~~~~^~~~~~~~~~
sauga.cpp:19:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
             scanf("%d", &x);
             ~~~~~^~~~~~~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...