제출 #1044706

#제출 시각아이디문제언어결과실행 시간메모리
1044706NickpapadakKpart (eJOI21_kpart)C++14
0 / 100
0 ms348 KiB
#include<bits/stdc++.h> using namespace std; int T; int main(){ scanf("%d", &T); while(T--){ int N; scanf("%d", &N); int a[N+1]; for(int i =1;i<=N;++i) scanf("%d", &a[i]); if(N == 7) printf("2 4 6\n"); else printf("2 3 6"); } return 0; }

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

Main.cpp: In function 'int main()':
Main.cpp:6:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
    6 |     scanf("%d", &T);
      |     ~~~~~^~~~~~~~~~
Main.cpp:9:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
    9 |         scanf("%d", &N);
      |         ~~~~~^~~~~~~~~~
Main.cpp:12:18: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
   12 |             scanf("%d", &a[i]);
      |             ~~~~~^~~~~~~~~~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...