Submission #1044703

#TimeUsernameProblemLanguageResultExecution timeMemory
1044703NickpapadakKpart (eJOI21_kpart)C++14
0 / 100
1 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("4 6 2\n");
        else       printf("3 2 6");
    }
    return 0;
}

Compilation message (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...