제출 #47377

#제출 시각아이디문제언어결과실행 시간메모리
47377daniel_02Construction of Highway (JOI18_construction)C++17
0 / 100
2 ms504 KiB
#include <bits/stdc++.h>



using namespace std;

const int N = 1e5 + 7;

int a[N];

main()
{
    int n;

    cin >> n;

    for (int i = 1; i <= n; i++)
        scanf("%d", &a[i]);

    for (int i = 1; i <= n; i++)
    {
        int q, w;

        scanf("%d%d", &q, &w);

        if (q == 1)
        {
            assert(0);
        }
    }
    cout << "YOO";
}


컴파일 시 표준 에러 (stderr) 메시지

construction.cpp:11:6: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
 main()
      ^
construction.cpp: In function 'int main()':
construction.cpp:18:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
         scanf("%d", &a[i]);
         ~~~~~^~~~~~~~~~~~~
construction.cpp:24:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
         scanf("%d%d", &q, &w);
         ~~~~~^~~~~~~~~~~~~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...