Error: declaration for parameter 'slov_ar' but no such parameter - C (СИ)
Формулировка задачи:
Как исправить
Ошибки:
Untitled1.c||In function 'main':|
Untitled1.c|26|warning: no semicolon at end of struct or union [enabled by default]|
Untitled1.c|22|warning: empty declaration [enabled by default]|
Untitled1.c|27|error: declaration for parameter 'slov_ar' but no such parameter|
#include <stdio.h>
int main()
struct Slovo
{
char slovo_id[20];
int povtor
};
struct Slovo slov_ar[100];
{
struct Slovo slov_ar[100];
char text[200]; int n;
printf ("Vvedite text\n");
scanf ("%s", &text);
for(int i;i<200;i++)
{
if ((text[i]==' ')|(text[i]=='\0'))
{
for (n;n<i;n++)
{
S[i].slovo[n]=text[n];
}
}
}
}Решение задачи: «Error: declaration for parameter 'slov_ar' but no such parameter»
textual
Листинг программы
int main()