답안 #215880

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
215880 2020-03-26T12:05:32 Z SamAnd Fire drill (LMIO18_sauga) C++17
21.1844 / 100
65 ms 4984 KB
#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

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);
             ~~~~~^~~~~~~~~~
# 결과 실행 시간 메모리 Grader output
1 Incorrect 65 ms 4984 KB Output isn't correct
2 Partially correct 5 ms 384 KB Output is partially correct
3 Partially correct 6 ms 384 KB Output is partially correct
4 Partially correct 6 ms 384 KB Output is partially correct
5 Partially correct 5 ms 384 KB Output is partially correct
6 Partially correct 6 ms 384 KB Output is partially correct
7 Partially correct 15 ms 1152 KB Output is partially correct
8 Incorrect 62 ms 4728 KB Output isn't correct
9 Partially correct 14 ms 768 KB Output is partially correct
10 Partially correct 5 ms 384 KB Output is partially correct