B. Appending Mex

探讨了如何确定给定数组是否能通过特定步骤无误构建,以及如何找到首次构建错误的步骤。该问题源于一道编程竞赛题,涉及算法、数据结构和逻辑判断。

滴答滴答---题目链接 

B. Appending Mex

time limit per test

1 second

memory limit per test

256 megabytes

input

standard input

output

standard output

Initially Ildar has an empty array. He performs nn steps. On each step he takes a subset of integers already added to the array and appends the mex of this subset to the array.

The mex of an multiset of integers is the smallest non-negative integer not presented in the multiset. For example, the mex of the multiset [0,2,3][0,2,3] is 11, while the mex of the multiset [1,2,1][1,2,1] is 00.

More formally, on the step mm, when Ildar already has an array a1,a2,…,am−1a1,a2,…,am−1, he chooses some subset of indices 1≤i1<i2<…<ik<m1≤i1<i2<…<ik<m (possibly, empty), where 0≤k<m0≤k<m, and appends the mex(ai1,ai2,…aik)mex(ai1,ai2,…aik) to the end of the array.

After performing all the steps Ildar thinks that he might have made a mistake somewhere. He asks you to determine for a given array a1,a2,…,ana1,a2,…,an the minimum step tt such that he has definitely made a mistake on at least one of the steps 1,2,…,t1,2,…,t, or determine that he could have obtained this array without mistakes.

Input

The first line contains a single integer nn (1≤n≤1000001≤n≤100000) — the number of steps Ildar made.

The second line contains nn integers a1,a2,…,ana1,a2,…,an (0≤ai≤1090≤ai≤109) — the array Ildar obtained.

Output

If Ildar could have chosen the subsets on each step in such a way that the resulting array is a1,a2,…,ana1,a2,…,an, print −1−1.

Otherwise print a single integer tt — the smallest index of a step such that a mistake was made on at least one step among steps 1,2,…,t1,2,…,t.

Examples

input

Copy

4
0 1 2 1

output

Copy

-1

input

Copy

3
1 0 1

output

Copy

1

input

Copy

4
0 1 2 239

output

Copy

4

Note

In the first example it is possible that Ildar made no mistakes. Here is the process he could have followed.

  • 11-st step. The initial array is empty. He can choose an empty subset and obtain 00, because the mex of an empty set is 00. Appending this value to the end he gets the array [0][0].
  • 22-nd step. The current array is [0][0]. He can choose a subset [0][0] and obtain an integer 11, because mex(0)=1mex(0)=1. Appending this value to the end he gets the array [0,1][0,1].
  • 33-rd step. The current array is [0,1][0,1]. He can choose a subset [0,1][0,1] and obtain an integer 22, because mex(0,1)=2mex(0,1)=2. Appending this value to the end he gets the array [0,1,2][0,1,2].
  • 44-th step. The current array is [0,1,2][0,1,2]. He can choose a subset [0][0] and obtain an integer 11, because mex(0)=1mex(0)=1. Appending this value to the end he gets the array [0,1,2,1][0,1,2,1].

Thus, he can get the array without mistakes, so the answer is −1−1.

In the second example he has definitely made a mistake on the very first step, because he could not have obtained anything different from 00.

In the third example he could have obtained [0,1,2][0,1,2] without mistakes, but 239239 is definitely wrong.


#include<bits/stdc++.h>
using namespace std;
int maxn,n;

int main()
{
    cin>>n;
    for(int i=1; i<=n; i++)
    {
        int x;
        cin>>x;
        if(x>maxn)
        {
            cout<<i<<endl;
            return 0;
        }
        if(x>=maxn) maxn=x+1;
    }
    cout<<"-1"<<endl;
    return 0;
}

 

[root@kylin100 script]# ./gs_preinstall -U kylin -G dbgrp -X /opt/software/GaussDB.xml --alarm-type=5 Parsing the configuration file. Successfully parsed the configuration file. Successfully delete task result file Installing the tools on the local node. Successfully installed the tools on the local node. Are you sure you want to create trust for root (yes/no)?yes Please enter password for root Password: TraceBackError:Traceback (most recent call last): File "/opt/software/GaussDB_Kernel/script/gspylib/threads/SshTool.py", line 194, in createTrust "Error: %s" % output if output else "") Exception: [GAUSS-51632] : Failed to do gs_sshexkey.Error: Please enter password for current user[root]. Checking network information. All nodes in the network are Normal. Successfully checked network information. Creating SSH trust. Creating the local key file. Successfully created the local key files. Appending local ID to authorized_keys. Successfully appended local ID to authorized_keys. Updating the known_hosts file. Successfully updated the known_hosts file. Appending authorized_key on the remote node. Successfully appended authorized_key on all remote node. Checking common authentication file content. Successfully checked common authentication content. Distributing SSH trust file to all node. Distributing trust keys file to all node successfully. Successfully distributed SSH trust file to all node. Error: Failed to register other ssh-agent,output is [Failed to ssh-add perform.Error: /root/.ssh/./ssh-agent.sh:行18: expect:未找到命令] During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/opt/software/GaussDB_Kernel/script/impl/preinstall/PreinstallImpl.py", line 215, in create_trust self.context.skipHostnameSet) File "/opt/software/GaussDB_Kernel/script/gspylib/threads/SshTool.py", line 200, in createTrust raise Exception(str(e)) Exception: [GAUSS-51632] : Failed to do gs_sshexkey.Error: Please enter password for current user[root]. Checking network information. All nodes in the network are Normal. Successfully checked network information. Creating SSH trust. Creating the local key file. Successfully created the local key files. Appending local ID to authorized_keys. Successfully appended local ID to authorized_keys. Updating the known_hosts file. Successfully updated the known_hosts file. Appending authorized_key on the remote node. Successfully appended authorized_key on all remote node. Checking common authentication file content. Successfully checked common authentication content. Distributing SSH trust file to all node. Distributing trust keys file to all node successfully. Successfully distributed SSH trust file to all node. Error: Failed to register other ssh-agent,output is [Failed to ssh-add perform.Error: /root/.ssh/./ssh-agent.sh:行18: expect:未找到命令] During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/opt/software/GaussDB_Kernel/script/impl/preinstall/PreinstallImpl.py", line 186, in createTrustForRoot self.create_trust(Ips, username) File "/opt/software/GaussDB_Kernel/script/impl/preinstall/PreinstallImpl.py", line 225, in create_trust raise Exception(str(err_msg)) Exception: [GAUSS-51632] : Failed to do gs_sshexkey.Error: Please enter password for current user[root]. Checking network information. All nodes in the network are Normal. Successfully checked network information. Creating SSH trust. Creating the local key file. Successfully created the local key files. Appending local ID to authorized_keys. Successfully appended local ID to authorized_keys. Updating the known_hosts file. Successfully updated the known_hosts file. Appending authorized_key on the remote node. Successfully appended authorized_key on all remote node. Checking common authentication file content. Successfully checked common authentication content. Distributing SSH trust file to all node. Distributing trust keys file to all node successfully. Successfully distributed SSH trust file to all node. Error: Failed to register other ssh-agent,output is [Failed to ssh-add perform.Error: /root/.ssh/./ssh-agent.sh:行18: expect:未找到命令] During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/opt/software/GaussDB_Kernel/script/impl/preinstall/PreinstallImpl.py", line 2107, in run self.doPreInstall() File "/opt/software/GaussDB_Kernel/script/impl/preinstall/PreinstallImpl.py", line 2008, in doPreInstall self.createTrustForRoot() File "/opt/software/GaussDB_Kernel/script/impl/preinstall/PreinstallImpl.py", line 190, in createTrustForRoot raise Exception(str(e)) Exception: [GAUSS-51632] : Failed to do gs_sshexkey.Error: Please enter password for current user[root]. Checking network information. All nodes in the network are Normal. Successfully checked network information. Creating SSH trust. Creating the local key file. Successfully created the local key files. Appending local ID to authorized_keys. Successfully appended local ID to authorized_keys. Updating the known_hosts file. Successfully updated the known_hosts file. Appending authorized_key on the remote node. Successfully appended authorized_key on all remote node. Checking common authentication file content. Successfully checked common authentication content. Distributing SSH trust file to all node. Distributing trust keys file to all node successfully. Successfully distributed SSH trust file to all node. Error: Failed to register other ssh-agent,output is [Failed to ssh-add perform.Error: /root/.ssh/./ssh-agent.sh:行18: expect:未找到命令] [root@kylin100 script]# yum install -y expect 上次元数据过期检查:4:37:34 前,执行于 2025年09月03日 星期三 10时35分04秒。 软件包 expect-1:5.45.4-3.ky10.x86_64 已安装。 依赖关系解决。 无需任何处理。 完毕! [root@kylin100 script]#
09-04
Initializing deployment to Android device/simulator Deploying to 10AC560029000J7 09:10:32: 为项目APP_1Andrion执行步骤 ... 09:10:32: 正在启动 "E:\QT\5.14.2\android\bin\qmake.exe" E:\test\Qt_Project\APP_1Andrion\APP_1Andrion.pro -spec android-clang "CONFIG+=qtquickcompiler" ANDROID_ABIS="armeabi-v7a" 09:10:33: 进程"E:\QT\5.14.2\android\bin\qmake.exe"正常退出。 09:10:33: 正在启动 "E:\android-ndk-r20b-windows-x86_64\android-ndk-r20b\prebuilt\windows-x86_64\bin\make.exe" -f E:/test/Qt_Project/build-APP_1Andrion-Android_for_armeabi_v7a_arm64_v8a_x86_x86_64_Clang_Qt_5_14_2_for_Android-Release/Makefile qmake_all make: Nothing to be done for `qmake_all'. 09:10:33: 进程"E:\android-ndk-r20b-windows-x86_64\android-ndk-r20b\prebuilt\windows-x86_64\bin\make.exe"正常退出。 09:10:33: 正在启动 "E:\android-ndk-r20b-windows-x86_64\android-ndk-r20b\prebuilt\windows-x86_64\bin\make.exe" -j16 make: Nothing to be done for `first'. 09:10:34: 进程"E:\android-ndk-r20b-windows-x86_64\android-ndk-r20b\prebuilt\windows-x86_64\bin\make.exe"正常退出。 09:10:34: Removing directory E:\test\Qt_Project\build-APP_1Andrion-Android_for_armeabi_v7a_arm64_v8a_x86_x86_64_Clang_Qt_5_14_2_for_Android-Release\android-build/libs 09:10:34: 正在启动 "E:\android-ndk-r20b-windows-x86_64\android-ndk-r20b\prebuilt\windows-x86_64\bin\make.exe" "INSTALL_ROOT=E:\test\Qt_Project\build-APP_1Andrion-Android_for_armeabi_v7a_arm64_v8a_x86_x86_64_Clang_Qt_5_14_2_for_Android-Release\android-build" install E:\QT\5.14.2\android\bin\qmake.exe -install qinstall -exe libMYAPP_armeabi-v7a.so E:\test\Qt_Project\build-APP_1Andrion-Android_for_armeabi_v7a_arm64_v8a_x86_x86_64_Clang_Qt_5_14_2_for_Android-Release\android-build\libs\armeabi-v7a\libMYAPP_armeabi-v7a.so 09:10:34: 进程"E:\android-ndk-r20b-windows-x86_64\android-ndk-r20b\prebuilt\windows-x86_64\bin\make.exe"正常退出。 09:10:34: Android deploy settings file not found, not building an APK. 09:10:34: Starting: "E:\QT\5.14.2\android\bin\androiddeployqt.exe --verbose --output E:/test/Qt_Project/build-APP_1Andrion-Android_for_armeabi_v7a_arm64_v8a_x86_x86_64_Clang_Qt_5_14_2_for_Android-Release/android-build --no-build --input E:/test/Qt_Project/build-APP_1Andrion-Android_for_armeabi_v7a_arm64_v8a_x86_x86_64_Clang_Qt_5_14_2_for_Android-Release/android-MYAPP-deployment-settings.json --gradle --reinstall --device 10AC560029000J7" Generating Android Package Input file: E:/test/Qt_Project/build-APP_1Andrion-Android_for_armeabi_v7a_arm64_v8a_x86_x86_64_Clang_Qt_5_14_2_for_Android-Release/android-MYAPP-deployment-settings.json Output directory: E:/test/Qt_Project/build-APP_1Andrion-Android_for_armeabi_v7a_arm64_v8a_x86_x86_64_Clang_Qt_5_14_2_for_Android-Release/android-build/ Application binary: MYAPP Android build platform: android-26 Install to device: 10AC560029000J7 Detecting dependencies of application. Reading dependencies from E:/test/Qt_Project/build-APP_1Andrion-Android_for_armeabi_v7a_arm64_v8a_x86_x86_64_Clang_Qt_5_14_2_for_Android-Release/android-build//libs/armeabi-v7a/libMYAPP_armeabi-v7a.so lib/libQt5Bluetooth_armeabi-v7a.so lib/libQt5Core_armeabi-v7a.so lib/libQt5Gui_armeabi-v7a.so lib/libQt5MultimediaWidgets_armeabi-v7a.so lib/libQt5Multimedia_armeabi-v7a.so lib/libQt5Network_armeabi-v7a.so lib/libQt5SerialPort_armeabi-v7a.so lib/libQt5Widgets_armeabi-v7a.so Reading dependencies from E:/QT/5.14.2/android/lib/libQt5Bluetooth_armeabi-v7a.so lib/libQt5AndroidExtras_armeabi-v7a.so lib/libQt5Core_armeabi-v7a.so Reading dependencies from E:/QT/5.14.2/android/lib/libQt5AndroidExtras_armeabi-v7a.so lib/libQt5Core_armeabi-v7a.so Reading dependencies from E:/QT/5.14.2/android/lib/libQt5Core_armeabi-v7a.so Appending dependency: lib/libQt5Core_armeabi-v7a.so Reading Android dependencies for Qt5Core_armeabi-v7a Appending dependency: lib/libQt5AndroidExtras_armeabi-v7a.so Reading Android dependencies for Qt5AndroidExtras_armeabi-v7a Appending dependency: lib/libQt5Bluetooth_armeabi-v7a.so Reading dependencies from E:/QT/5.14.2/android/lib/libQt5Gui_armeabi-v7a.so lib/libQt5Core_armeabi-v7a.so Appending dependency: lib/libQt5Gui_armeabi-v7a.so Reading dependencies from E:/QT/5.14.2/android/lib/libQt5MultimediaWidgets_armeabi-v7a.so lib/libQt5Core_armeabi-v7a.so lib/libQt5Gui_armeabi-v7a.so lib/libQt5Multimedia_armeabi-v7a.so lib/libQt5Network_armeabi-v7a.so lib/libQt5OpenGL_armeabi-v7a.so lib/libQt5Widgets_armeabi-v7a.so Reading dependencies from E:/QT/5.14.2/android/lib/libQt5Multimedia_armeabi-v7a.so lib/libQt5Core_armeabi-v7a.so lib/libQt5Gui_armeabi-v7a.so lib/libQt5Network_armeabi-v7a.so Reading dependencies from E:/QT/5.14.2/android/lib/libQt5Network_armeabi-v7a.so lib/libQt5Core_armeabi-v7a.so Appending dependency: lib/libQt5Network_armeabi-v7a.so Reading Android dependencies for Qt5Network_armeabi-v7a Appending dependency from xml: plugins/bearer/libplugins_bearer_qandroidbearer_arm64-v8a.so Appending dependency from xml: plugins/bearer/libplugins_bearer_qandroidbearer_armeabi-v7a.so Appending dependency from xml: plugins/bearer/libplugins_bearer_qandroidbearer_x86.so Appending dependency from xml: plugins/bearer/libplugins_bearer_qandroidbearer_x86_64.so Appending dependency: lib/libQt5Multimedia_armeabi-v7a.so Reading dependencies from E:/QT/5.14.2/android/lib/libQt5OpenGL_armeabi-v7a.so lib/libQt5Core_armeabi-v7a.so lib/libQt5Gui_armeabi-v7a.so lib/libQt5Widgets_armeabi-v7a.so Reading dependencies from E:/QT/5.14.2/android/lib/libQt5Widgets_armeabi-v7a.so lib/libQt5Core_armeabi-v7a.so lib/libQt5Gui_armeabi-v7a.so Appending dependency: lib/libQt5Widgets_armeabi-v7a.so Reading Android dependencies for Qt5Widgets_armeabi-v7a Appending dependency from xml: plugins/styles/libplugins_styles_qandroidstyle_arm64-v8a.so Appending dependency from xml: plugins/styles/libplugins_styles_qandroidstyle_armeabi-v7a.so Appending dependency from xml: plugins/styles/libplugins_styles_qandroidstyle_x86.so Appending dependency from xml: plugins/styles/libplugins_styles_qandroidstyle_x86_64.so Appending dependency: lib/libQt5OpenGL_armeabi-v7a.so Reading Android dependencies for Qt5Multimedia_armeabi-v7a Appending dependency from xml: lib/libQt5MultimediaQuick_armeabi-v7a.so Appending dependency from xml: plugins/mediaservice/libplugins_mediaservice_qtmedia_android_arm64-v8a.so Appending dependency from xml: plugins/mediaservice/libplugins_mediaservice_qtmedia_android_armeabi-v7a.so Appending dependency from xml: plugins/mediaservice/libplugins_mediaservice_qtmedia_android_x86.so Appending dependency from xml: plugins/mediaservice/libplugins_mediaservice_qtmedia_android_x86_64.so Appending dependency from xml: plugins/audio/libplugins_audio_qtaudio_opensles_arm64-v8a.so Appending dependency from xml: plugins/audio/libplugins_audio_qtaudio_opensles_armeabi-v7a.so Appending dependency from xml: plugins/audio/libplugins_audio_qtaudio_opensles_x86.so Appending dependency from xml: plugins/audio/libplugins_audio_qtaudio_opensles_x86_64.so Appending dependency from xml: plugins/video/videonode/libplugins_video_videonode_qtsgvideonode_android_arm64-v8a.so Appending dependency from xml: plugins/video/videonode/libplugins_video_videonode_qtsgvideonode_android_armeabi-v7a.so Appending dependency from xml: plugins/video/videonode/libplugins_video_videonode_qtsgvideonode_android_x86.so Appending dependency from xml: plugins/video/videonode/libplugins_video_videonode_qtsgvideonode_android_x86_64.so Appending dependency from xml: plugins/playlistformats/libplugins_playlistformats_qtmultimedia_m3u_arm64-v8a.so Appending dependency from xml: plugins/playlistformats/libplugins_playlistformats_qtmultimedia_m3u_armeabi-v7a.so Appending dependency from xml: plugins/playlistformats/libplugins_playlistformats_qtmultimedia_m3u_x86.so Appending dependency from xml: plugins/playlistformats/libplugins_playlistformats_qtmultimedia_m3u_x86_64.so No android dependencies for Qt5OpenGL_armeabi-v7a Appending dependency: lib/libQt5MultimediaWidgets_armeabi-v7a.so Reading dependencies from E:/QT/5.14.2/android/lib/libQt5SerialPort_armeabi-v7a.so lib/libQt5Core_armeabi-v7a.so Appending dependency: lib/libQt5SerialPort_armeabi-v7a.so Reading Android dependencies for Qt5Bluetooth_armeabi-v7a Reading Android dependencies for Qt5Gui_armeabi-v7a Appending dependency from xml: plugins/platforms/libplugins_platforms_qtforandroid_arm64-v8a.so Appending dependency from xml: plugins/platforms/libplugins_platforms_qtforandroid_armeabi-v7a.so Appending dependency from xml: plugins/platforms/libplugins_platforms_qtforandroid_x86.so Appending dependency from xml: plugins/platforms/libplugins_platforms_qtforandroid_x86_64.so Appending dependency from xml: plugins/iconengines/libplugins_iconengines_qsvgicon_arm64-v8a.so Appending dependency from xml: plugins/iconengines/libplugins_iconengines_qsvgicon_armeabi-v7a.so Appending dependency from xml: plugins/iconengines/libplugins_iconengines_qsvgicon_x86.so Appending dependency from xml: plugins/iconengines/libplugins_iconengines_qsvgicon_x86_64.so Appending dependency from xml: plugins/imageformats/libplugins_imageformats_qgif_arm64-v8a.so Appending dependency from xml: plugins/imageformats/libplugins_imageformats_qgif_armeabi-v7a.so Appending dependency from xml: plugins/imageformats/libplugins_imageformats_qgif_x86.so Appending dependency from xml: plugins/imageformats/libplugins_imageformats_qgif_x86_64.so Appending dependency from xml: plugins/imageformats/libplugins_imageformats_qicns_arm64-v8a.so Appending dependency from xml: plugins/imageformats/libplugins_imageformats_qicns_armeabi-v7a.so Appending dependency from xml: plugins/imageformats/libplugins_imageformats_qicns_x86.so Appending dependency from xml: plugins/imageformats/libplugins_imageformats_qicns_x86_64.so Appending dependency from xml: plugins/imageformats/libplugins_imageformats_qico_arm64-v8a.so Appending dependency from xml: plugins/imageformats/libplugins_imageformats_qico_armeabi-v7a.so Appending dependency from xml: plugins/imageformats/libplugins_imageformats_qico_x86.so Appending dependency from xml: plugins/imageformats/libplugins_imageformats_qico_x86_64.so Appending dependency from xml: plugins/imageformats/libplugins_imageformats_qjpeg_arm64-v8a.so Appending dependency from xml: plugins/imageformats/libplugins_imageformats_qjpeg_armeabi-v7a.so Appending dependency from xml: plugins/imageformats/libplugins_imageformats_qjpeg_x86.so Appending dependency from xml: plugins/imageformats/libplugins_imageformats_qjpeg_x86_64.so Appending dependency from xml: plugins/imageformats/libplugins_imageformats_qsvg_arm64-v8a.so Appending dependency from xml: plugins/imageformats/libplugins_imageformats_qsvg_armeabi-v7a.so Appending dependency from xml: plugins/imageformats/libplugins_imageformats_qsvg_x86.so Appending dependency from xml: plugins/imageformats/libplugins_imageformats_qsvg_x86_64.so Appending dependency from xml: plugins/imageformats/libplugins_imageformats_qtga_arm64-v8a.so Appending dependency from xml: plugins/imageformats/libplugins_imageformats_qtga_armeabi-v7a.so Appending dependency from xml: plugins/imageformats/libplugins_imageformats_qtga_x86.so Appending dependency from xml: plugins/imageformats/libplugins_imageformats_qtga_x86_64.so Appending dependency from xml: plugins/imageformats/libplugins_imageformats_qtiff_arm64-v8a.so Appending dependency from xml: plugins/imageformats/libplugins_imageformats_qtiff_armeabi-v7a.so Appending dependency from xml: plugins/imageformats/libplugins_imageformats_qtiff_x86.so Appending dependency from xml: plugins/imageformats/libplugins_imageformats_qtiff_x86_64.so Appending dependency from xml: plugins/imageformats/libplugins_imageformats_qwbmp_arm64-v8a.so Appending dependency from xml: plugins/imageformats/libplugins_imageformats_qwbmp_armeabi-v7a.so Appending dependency from xml: plugins/imageformats/libplugins_imageformats_qwbmp_x86.so Appending dependency from xml: plugins/imageformats/libplugins_imageformats_qwbmp_x86_64.so Appending dependency from xml: plugins/imageformats/libplugins_imageformats_qwebp_arm64-v8a.so Appending dependency from xml: plugins/imageformats/libplugins_imageformats_qwebp_armeabi-v7a.so Appending dependency from xml: plugins/imageformats/libplugins_imageformats_qwebp_x86.so Appending dependency from xml: plugins/imageformats/libplugins_imageformats_qwebp_x86_64.so No android dependencies for Qt5MultimediaWidgets_armeabi-v7a No android dependencies for Qt5SerialPort_armeabi-v7a Skipping E:/QT/5.14.2/android/lib/libQt5MultimediaQuick_armeabi-v7a.so due to unmet dependencies: lib/libQt5QmlModels_armeabi-v7a.so,lib/libQt5Qml_armeabi-v7a.so,lib/libQt5Quick_armeabi-v7a.so Reading dependencies from E:/QT/5.14.2/android/plugins/bearer/libplugins_bearer_qandroidbearer_armeabi-v7a.so lib/libQt5Core_armeabi-v7a.so lib/libQt5Network_armeabi-v7a.so Reading dependencies from E:/QT/5.14.2/android/plugins/platforms/libplugins_platforms_qtforandroid_armeabi-v7a.so lib/libQt5Core_armeabi-v7a.so lib/libQt5Gui_armeabi-v7a.so Reading dependencies from E:/QT/5.14.2/android/plugins/mediaservice/libplugins_mediaservice_qtmedia_android_armeabi-v7a.so lib/libQt5Core_armeabi-v7a.so lib/libQt5Gui_armeabi-v7a.so lib/libQt5Multimedia_armeabi-v7a.so lib/libQt5Network_armeabi-v7a.so Skipping lib/libQt5MultimediaQuick_armeabi-v7a.so due to unmet dependencies: lib/libQt5QmlModels_armeabi-v7a.so,lib/libQt5Qml_armeabi-v7a.so,lib/libQt5Quick_armeabi-v7a.so Scanning for QML imports. Running qmlimportscanner with the following command: E:/QT/5.14.2/android/bin/qmlimportscanner.exe -qrcFiles E:/test/Qt_Project/APP_1Andrion/ICon.qrc -rootPath E:/test/Qt_Project/APP_1Andrion/ -importPath E:/QT/5.14.2/android/qml E:/test/Qt_Project/APP_1Andrion/ Copying 1 dependencies from Qt into package. Copying STL library -- Copied E:/test/Qt_Project/build-APP_1Andrion-Android_for_armeabi_v7a_arm64_v8a_x86_x86_64_Clang_Qt_5_14_2_for_Android-Release/android-build//libs/armeabi-v7a/libc++_shared.so Skipping createRCC Installing Android package to device. Running command "E:/Androisdk/platform-tools/adb.exe -s 10AC560029000J7 install -r E:/test/Qt_Project/build-APP_1Andrion-Android_for_armeabi_v7a_arm64_v8a_x86_x86_64_Clang_Qt_5_14_2_for_Android-Release/android-build//build/outputs/apk/android-build-debug.apk" Performing Streamed Install adb: failed to stat E:/test/Qt_Project/build-APP_1Andrion-Android_for_armeabi_v7a_arm64_v8a_x86_x86_64_Clang_Qt_5_14_2_for_Android-Release/android-build//build/outputs/apk/android-build-debug.apk: No such file or directory Installing to device failed! 09:10:37: The process "E:\QT\5.14.2\android\bin\androiddeployqt.exe" exited with code 16. 09:10:37: Pulling files necessary for debugging. 09:10:37: Package deploy: Running command "E:\Androisdk\platform-tools\adb.exe -s 10AC560029000J7 pull /system/bin/app_process E:/test/Qt_Project/build-APP_1Andrion-Android_for_armeabi_v7a_arm64_v8a_x86_x86_64_Clang_Qt_5_14_2_for_Android-Release/app_process". 09:10:37: Package deploy: Running command "E:\Androisdk\platform-tools\adb.exe -s 10AC560029000J7 pull /system/bin/app_process32 E:/test/Qt_Project/build-APP_1Andrion-Android_for_armeabi_v7a_arm64_v8a_x86_x86_64_Clang_Qt_5_14_2_for_Android-Release/app_process". 09:10:37: Package deploy: Running command "E:\Androisdk\platform-tools\adb.exe -s 10AC560029000J7 pull /system/bin/linker E:/test/Qt_Project/build-APP_1Andrion-Android_for_armeabi_v7a_arm64_v8a_x86_x86_64_Clang_Qt_5_14_2_for_Android-Release/linker". 09:10:38: Package deploy: Running command "E:\Androisdk\platform-tools\adb.exe -s 10AC560029000J7 pull /system/lib/libc.so E:/test/Qt_Project/build-APP_1Andrion-Android_for_armeabi_v7a_arm64_v8a_x86_x86_64_Clang_Qt_5_14_2_for_Android-Release/libc.so". Error while building/deploying project APP_1Andrion (kit: Android for armeabi-v7a,arm64-v8a,x86,x86_64 (Clang Qt 5.14.2 for Android)) When executing step "Deploy to Android device" 09:10:38: Elapsed time: 00:06.
07-06
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值