QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#344004#7933. Build PermutationZhangYiDeCompile Error//C111.6kb2024-03-03 13:26:202024-03-03 13:26:21

Details

answer.code: In function ‘main’:
answer.code:13:5: error: variable-sized object may not be initialized
     long long num[n]={};
     ^~~~
answer.code: In function ‘isUnique’:
answer.code:63:5: error: variable-sized object may not be initialized
     long long temp_arr[n] = {}, temp_num[n] = {};
     ^~~~
answer.code:63:5: error: variable-sized object may not be initialized
answer.code: In function ‘main’:
answer.code:10:5: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
     scanf("%lld",&n);
     ^~~~~~~~~~~~~~~~
answer.code:15:9: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
         scanf("%lld",&array[i]);
         ^~~~~~~~~~~~~~~~~~~~~~~