|
0 / 0 / 0
Регистрация: 20.10.2022
Сообщений: 41
|
||||||
Указатели. Ошибка "Operands of '*' have incompatible types"24.12.2022, 00:30. Показов 694. Ответов 4
помогите разобраться в решении задачи
что можно сделать с этими ошибками,как преобразовать?
Building 32 exp 2.obj. C:\Users\sh\Documents\Pelles C Projects\32 exp 2\32 exp 2.c(21): warning #2117: Old-style function definition for 'main'. C:\Users\sh\Documents\Pelles C Projects\32 exp 2\32 exp 2.c(64): error #2168: Operands of '*' have incompatible types 'int *' and 'int *'. C:\Users\sh\Documents\Pelles C Projects\32 exp 2\32 exp 2.c(64): error #2168: Operands of '*' have incompatible types 'int' and 'int *'. C:\Users\sh\Documents\Pelles C Projects\32 exp 2\32 exp 2.c(64): error #2168: Operands of '*' have incompatible types 'int *' and 'int *'. C:\Users\sh\Documents\Pelles C Projects\32 exp 2\32 exp 2.c(64): error #2168: Operands of '*' have incompatible types 'int' and 'int *'. C:\Users\sh\Documents\Pelles C Projects\32 exp 2\32 exp 2.c(64): error #2168: Operands of '*' have incompatible types 'int *' and 'int *'. C:\Users\sh\Documents\Pelles C Projects\32 exp 2\32 exp 2.c(64): error #2168: Operands of '*' have incompatible types 'int' and 'int *'. C:\Users\sh\Documents\Pelles C Projects\32 exp 2\32 exp 2.c(64): error #2168: Operands of '*' have incompatible types 'int *' and 'int *'. C:\Users\sh\Documents\Pelles C Projects\32 exp 2\32 exp 2.c(64): error #2168: Operands of '*' have incompatible types 'int' and 'int *'. C:\Users\sh\Documents\Pelles C Projects\32 exp 2\32 exp 2.c(65): error #2168: Operands of '*' have incompatible types 'int' and 'int *'. C:\Users\sh\Documents\Pelles C Projects\32 exp 2\32 exp 2.c(65): error #2168: Operands of '*' have incompatible types 'int' and 'int *'. C:\Users\sh\Documents\Pelles C Projects\32 exp 2\32 exp 2.c(65): error #2168: Operands of '/' have incompatible types 'int' and 'int *'. *** Error code: 1 *** Done.
0
|
||||||
| 24.12.2022, 00:30 | |
|
Ответы с готовыми решениями:
4
Ошибка: invalid operands of types 'double' and 'int' to binary 'operator%' Ошибка Incompatible types Ошибка Incompatible types |
|
Просто Лис
|
|||||||||||
| 24.12.2022, 06:54 | |||||||||||
|
Может, написать так?
И так:
0
|
|||||||||||
|
0 / 0 / 0
Регистрация: 20.10.2022
Сообщений: 41
|
|
| 24.12.2022, 11:00 [ТС] | |
|
программа шлет меня куда подальше...
Building 32 exp 2.obj. C:\Users\sh\Documents\Pelles C Projects\32 exp 2\32 exp 2.c(21): warning #2117: Old-style function definition for 'main'. C:\Users\sh\Documents\Pelles C Projects\32 exp 2\32 exp 2.c(64): error #2168: Operands of '*' have incompatible types 'int *' and 'int *'. C:\Users\sh\Documents\Pelles C Projects\32 exp 2\32 exp 2.c(64): error #2168: Operands of '*' have incompatible types 'int *' and 'int *'. C:\Users\sh\Documents\Pelles C Projects\32 exp 2\32 exp 2.c(64): error #2168: Operands of '*' have incompatible types 'int *' and 'int *'. C:\Users\sh\Documents\Pelles C Projects\32 exp 2\32 exp 2.c(64): error #2168: Operands of '*' have incompatible types 'int *' and 'int *'. C:\Users\sh\Documents\Pelles C Projects\32 exp 2\32 exp 2.c(65): error #2168: Operands of '/' have incompatible types 'int' and 'int *'. C:\Users\sh\Documents\Pelles C Projects\32 exp 2\32 exp 2.c(68): error #2168: Operands of '>=' have incompatible types 'int *' and 'int'. C:\Users\sh\Documents\Pelles C Projects\32 exp 2\32 exp 2.c(68): error #2168: Operands of '<=' have incompatible types 'int *' and 'int'. C:\Users\sh\Documents\Pelles C Projects\32 exp 2\32 exp 2.c(68): error #2168: Operands of '>=' have incompatible types 'int *' and 'int'. C:\Users\sh\Documents\Pelles C Projects\32 exp 2\32 exp 2.c(68): error #2168: Operands of '<=' have incompatible types 'int *' and 'int'. C:\Users\sh\Documents\Pelles C Projects\32 exp 2\32 exp 2.c(69): error #2168: Operands of '>=' have incompatible types 'int *' and 'int'. C:\Users\sh\Documents\Pelles C Projects\32 exp 2\32 exp 2.c(69): error #2168: Operands of '<=' have incompatible types 'int *' and 'int'. C:\Users\sh\Documents\Pelles C Projects\32 exp 2\32 exp 2.c(69): error #2168: Operands of '<=' have incompatible types 'int *' and 'int'. C:\Users\sh\Documents\Pelles C Projects\32 exp 2\32 exp 2.c(69): error #2168: Operands of '>=' have incompatible types 'int *' and 'int'. C:\Users\sh\Documents\Pelles C Projects\32 exp 2\32 exp 2.c(69): error #2168: Operands of '>=' have incompatible types 'int *' and 'int'. C:\Users\sh\Documents\Pelles C Projects\32 exp 2\32 exp 2.c(69): error #2168: Operands of '<=' have incompatible types 'int *' and 'int'. C:\Users\sh\Documents\Pelles C Projects\32 exp 2\32 exp 2.c(69): error #2168: Operands of '<=' have incompatible types 'int *' and 'int'. C:\Users\sh\Documents\Pelles C Projects\32 exp 2\32 exp 2.c(69): error #2168: Operands of '>=' have incompatible types 'int *' and 'int'. *** Error code: 1 *** Done.
0
|
|
|
0 / 0 / 0
Регистрация: 20.10.2022
Сообщений: 41
|
|
| 24.12.2022, 11:15 [ТС] | |
|
спасибо за помощь!
0
|
|
| 24.12.2022, 11:15 | |
|
Помогаю со студенческими работами здесь
5
Ошибка: incompatible types Ошибка: Incompatible types Ошибка: Incompatible types Ошибка incompatible types Ошибка: Incompatible types Искать еще темы с ответами Или воспользуйтесь поиском по форуму: |
|
Новые блоги и статьи
|
||||
|
Новый ноутбук
volvo 07.12.2025
Всем привет.
По скидке в "черную пятницу" взял себе новый ноутбук Lenovo ThinkBook 16 G7 на Амазоне:
Ryzen 5 7533HS
64 Gb DDR5
1Tb NVMe
16" Full HD Display
Win11 Pro
|
Музыка, написанная Искусственным Интеллектом
volvo 04.12.2025
Всем привет. Некоторое время назад меня заинтересовало, что уже умеет ИИ в плане написания музыки для песен, и, собственно, исполнения этих самых песен. Стихов у нас много, уже вышли 4 книги, еще 3. . .
|
От async/await к виртуальным потокам в Python
IndentationError 23.11.2025
Армин Ронахер поставил под сомнение async/ await. Создатель Flask заявляет: цветные функции - провал, виртуальные потоки - решение. Не threading-динозавры, а новое поколение лёгких потоков. Откат?. . .
|
Поиск "дружественных имён" СОМ портов
Argus19 22.11.2025
Поиск "дружественных имён" СОМ портов
На странице:
https:/ / norseev. ru/ 2018/ 01/ 04/ comportlist_windows/
нашёл схожую тему. Там приведён код на С++, который показывает только имена СОМ портов, типа,. . .
|
Сколько Государство потратило денег на меня, обеспечивая инсулином.
Programma_Boinc 20.11.2025
Сколько Государство потратило денег на меня, обеспечивая инсулином.
Вот решила сделать интересный приблизительный подсчет, сколько государство потратило на меня денег на покупку инсулинов.
. . .
|
|
Ломающие изменения в C#.NStar Alpha
Etyuhibosecyu 20.11.2025
Уже можно не только тестировать, но и пользоваться C#. NStar - писать оконные приложения, содержащие надписи, кнопки, текстовые поля и даже изображения, например, моя игра "Три в ряд" написана на этом. . .
|
Мысли в слух
kumehtar 18.11.2025
Кстати, совсем недавно имел разговор на тему медитаций с людьми. И обнаружил, что они вообще не понимают что такое медитация и зачем она нужна. Самые базовые вещи. Для них это - когда просто люди. . .
|
Создание Single Page Application на фреймах
krapotkin 16.11.2025
Статья исключительно для начинающих. Подходы оригинальностью не блещут.
В век Веб все очень привыкли к дизайну Single-Page-Application .
Быстренько разберем подход "на фреймах".
Мы делаем одну. . .
|
Фото: Daniel Greenwood
kumehtar 13.11.2025
|
Расскажи мне о Мире, бродяга
kumehtar 12.11.2025
— Расскажи мне о Мире, бродяга,
Ты же видел моря и метели.
Как сменялись короны и стяги,
Как эпохи стрелою летели.
- Этот мир — это крылья и горы,
Снег и пламя, любовь и тревоги,
И бескрайние. . .
|