query[i] == ' '
Ошибка компиляции:
/exposed/submission/submission.cpp: In function ‘int main()’:
/exposed/submission/submission.cpp:12:21: error: comparison with string literal results in unspecified behavior [-Werror=address]
12 | if(query[i] == " "){
compilation terminated due to -Wfatal-errors.
cc1plus: all warnings being treated as errors
import pynput
C:\Users\User\Desktop>main.exe
Traceback (most recent call last):
File "main.py", line 1, in <module>
import pynput
File "c:\users\user\appdata\local\programs\python\python37\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 493, in exec_module
exec(bytecode, module.__dict__)
File "pynput\__init__.py", line 40, in <module>
File "c:\users\user\appdata\local\programs\python\python37\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 493, in exec_module
exec(bytecode, module.__dict__)
File "pynput\keyboard\__init__.py", line 31, in <module>
File "pynput\_util\__init__.py", line 82, in backend
ImportError
[8676] Failed to execute script main
Текст из примера:
green parrot
- В конце ещё пробел но когда оставляю комментарий он убирается.Ввод в консоле: