ProgrammSD 0 / 0 / 0 Регистрация: 24.02.2011 Сообщений: 18 |
||||
1 |
||||
24.02.2011, 17:38. Показов 3492. Ответов 22 Метки нет (Все метки)
простая программка
в чем проблема?
0 |
Programming Эксперт 94731 / 64177 / 26122 Регистрация: 12.04.2006 Сообщений: 116,782 |
24.02.2011, 17:38 |
Ответы с готовыми решениями: Исправить ошибку «Begin expected» Pascal …ошибка 36: begin expected w:arrayof integer;… программа не запускается выдает Error 36 begin expected Uses Crt; Read Function Vp(x1,y1,z1,x2,y2,z2,x3,y3,z3:Integer):Integer;… Дан массив строк. Напишите программу, проверяющую правильность вложения операторных скобок begin . end — каждому begin должен соответствовать end 22 |
Почетный модератор 64291 / 47589 / 32740 Регистрация: 18.05.2008 Сообщений: 115,181 |
|
24.02.2011, 17:41 |
2 |
Не знаю, у меня никакой begin не просит, все работает…
0 |
0 / 0 / 0 Регистрация: 24.02.2011 Сообщений: 18 |
|
24.02.2011, 17:47 [ТС] |
3 |
а ты в какой среде программировал?
0 |
Почетный модератор 64291 / 47589 / 32740 Регистрация: 18.05.2008 Сообщений: 115,181 |
|
24.02.2011, 17:54 |
4 |
В Паскаль АВС.
0 |
0 / 0 / 0 Регистрация: 24.02.2011 Сообщений: 18 |
|
24.02.2011, 17:56 [ТС] |
5 |
А я в Turbo 7.1
0 |
Почетный модератор 64291 / 47589 / 32740 Регистрация: 18.05.2008 Сообщений: 115,181 |
|
24.02.2011, 17:57 |
6 |
7.1 у меня нет, а в 7.0 тоже нет никаких ошибок, да и просто по тексту их не видно…
0 |
0 / 0 / 0 Регистрация: 24.02.2011 Сообщений: 18 |
|
24.02.2011, 17:59 [ТС] |
7 |
У меня Windows 7 и написано что Turbo 7.0 там не идет.
0 |
2857 / 1986 / 788 Регистрация: 23.09.2010 Сообщений: 4,877 |
|
24.02.2011, 18:01 |
8 |
Скачать Паскаль
0 |
0 / 0 / 2 Регистрация: 31.01.2011 Сообщений: 44 |
|
24.02.2011, 18:03 |
9 |
Паскаль не работает на 64 битной винде, ставь 32 битную…
0 |
2857 / 1986 / 788 Регистрация: 23.09.2010 Сообщений: 4,877 |
|
24.02.2011, 18:03 |
10 |
wh1tE
0 |
Почетный модератор 64291 / 47589 / 32740 Регистрация: 18.05.2008 Сообщений: 115,181 |
|
24.02.2011, 18:04 |
11 |
ProgrammSD, 7.1 плохой Паскаль, он и на 32 бита толком не работает, ставь уж лучше Free Pascal.
0 |
0 / 0 / 0 Регистрация: 24.02.2011 Сообщений: 3 |
|
24.02.2011, 18:04 |
12 |
В Паскале ABC никаких проблем нет
0 |
0 / 0 / 2 Регистрация: 31.01.2011 Сообщений: 44 |
|
24.02.2011, 18:05 |
13 |
Ессс кэп
0 |
0 / 0 / 0 Регистрация: 24.02.2011 Сообщений: 18 |
|
24.02.2011, 18:39 [ТС] |
14 |
Паскаль не работает на 64 битной винде, ставь 32 битную… У меня 32 (86) бит. Добавлено через 17 минут
0 |
Почетный модератор 64291 / 47589 / 32740 Регистрация: 18.05.2008 Сообщений: 115,181 |
|
24.02.2011, 18:43 |
15 |
Да, ни у кого нет ошибки, у тебя есть. Это ты просто уникум….
0 |
0 / 0 / 0 Регистрация: 24.02.2011 Сообщений: 18 |
|
24.02.2011, 18:56 [ТС] |
16 |
Да, ни у кого нет ошибки, у тебя есть. Это ты просто уникум…. Ну так это же я…
0 |
Почетный модератор 64291 / 47589 / 32740 Регистрация: 18.05.2008 Сообщений: 115,181 |
|
24.02.2011, 18:58 |
17 |
Может ты сюда правильный код выложил, а у тебя там с ошибкой?
0 |
0 / 0 / 0 Регистрация: 24.02.2011 Сообщений: 18 |
|
24.02.2011, 19:01 [ТС] |
18 |
Может ты сюда правильный код выложил, а у тебя там с ошибкой? Да не, я его скопировал… Он правильный…
0 |
Почетный модератор 64291 / 47589 / 32740 Регистрация: 18.05.2008 Сообщений: 115,181 |
|
24.02.2011, 19:07 |
19 |
Может думаешь, дурим тебя… Вот скрин в Паскале АВС. Миниатюры
1 |
0 / 0 / 0 Регистрация: 24.02.2011 Сообщений: 18 |
|
24.02.2011, 19:19 [ТС] |
20 |
О, вроде разобрался, наверное что-то было с программой.
0 |
IT_Exp Эксперт 87844 / 49110 / 22898 Регистрация: 17.06.2006 Сообщений: 92,604 |
24.02.2011, 19:19 |
20 |
Step 1 – Solve Pascal Error 36 Begin Expected
Is Pascal Error 36 Begin Expected appearing? Would you like to safely and quickly eliminate Pascal Error 36 which additionally can lead to a blue screen of death?
When you manually edit your Windows Registry trying to take away the invalid keys you’re taking a authentic chance. Unless you’ve got been adequately trained and experienced you’re in danger of disabling your computer system from working at all. You could bring about irreversible injury to your whole operating system. As very little as just 1 misplaced comma can preserve your Pc from even booting every one of the way by!
Troubleshooting Windows XP, Vista, 7, 8 & 10
Simply because this chance is so higher, we hugely suggest that you make use of a trusted registry cleaner plan like CCleaner (Microsoft Gold Partner Licensed). This system will scan and then fix any Pascal Error 36 Begin Expected complications.
Registry cleaners automate the entire procedure of finding invalid registry entries and missing file references (including the Expected error) likewise as any broken hyperlinks inside of your registry.
Issue with
Backups are made immediately prior to each and every scan providing you with the choice of undoing any changes with just one click. This protects you against doable damaging your pc. Another advantage to these registry cleaners is that repaired registry errors will strengthen the speed and performance of one’s procedure drastically.
- http://www.ousob.com/ng/pascal/ng3b9c6.php
- http://forum.sources.ru/index.php?showtopic=296435
- http://www.developpez.net/forums/d100058/autres-langages/pascal/langage/error-36-begin-expected/
- http://bpascal.ru/doc/error.php?number=36
Cautionary Note: Yet again, for those who are not an state-of-the-art consumer it’s very encouraged that you simply refrain from editing your Windows Registry manually. If you make even the smallest error within the Registry Editor it can result in you some serious issues that may even call for a brand new set up of Windows. Not all difficulties attributable to incorrect Registry Editor use are solvable.
Fixed:
Symptoms of Pascal Error 36 Begin Expected
“Pascal Error 36 Begin Expected” appears and crashes the energetic method window.
Your Personal computer routinely crashes with Pascal Error 36 Begin Expected when running the exact same system.
“Pascal Error 36 Begin Expected” is shown.
Windows operates sluggishly and responds little by little to mouse or keyboard input.
Your computer periodically “freezes” for the number of seconds in a time.
Will cause of Pascal Error 36 Begin Expected
Corrupt obtain or incomplete set up of Windows Operating System software program.
Corruption in Windows registry from a new Windows Operating System-related application adjust (install or uninstall).
Virus or malware infection which has corrupted Windows method documents or Windows Operating System-related application data files.
Another method maliciously or mistakenly deleted Windows Operating System-related files.
Mistakes this sort of as “Pascal Error 36 Begin Expected” can be brought about by several different elements, so it really is important that you troubleshoot every of the achievable brings about to forestall it from recurring.
Simply click the beginning button.
Variety “command” inside the lookup box… Will not hit ENTER nonetheless!
Although keeping CTRL-Shift in your keyboard, hit ENTER.
You’re going to be prompted that has a authorization dialog box.
Click on Of course.
A black box will open having a blinking cursor.
Variety “regedit” and hit ENTER.
Within the Registry Editor, choose the connected key (eg. Windows Operating System) you wish to back again up.
Within the File menu, choose Export.
Inside the Preserve In list, pick out the folder in which you wish to save the Windows Operating System backup key.
Inside the File Title box, sort a reputation for the backup file, these types of as “Windows Operating System Backup”.
From the Export Vary box, ensure that “Selected branch” is selected.
Click on Help you save.
The file is then saved by using a .reg file extension.
You now use a backup within your related registry entry.
Solution to your problem
There are actually some manual registry editing measures that can not be talked about in this article due to the high chance involved for your laptop or computer method. If you want to understand more then check out the links below.
Additional Measures:
One. Conduct a Thorough Malware Scan
There’s a probability the Expected Pascal Error Begin 36 error is relevant to some variety of walware infection. These infections are malicious and ready to corrupt or damage and possibly even delete your ActiveX Control Error files. Also, it’s attainable that your Pascal Error 36 Begin Expected is actually connected to some element of that malicious plan itself.
2. Clean Disk Cleanup
The a lot more you employ your computer the extra it accumulates junk files. This comes from surfing, downloading packages, and any sort of usual computer system use. When you don’t clean the junk out occasionally and keep your program clean, it could turn into clogged and respond slowly. That is when you can encounter an 36 error because of possible conflicts or from overloading your hard drive.
Once you clean up these types of files using Disk Cleanup it could not just remedy Pascal Error 36 Begin Expected, but could also create a dramatic change in the computer’s efficiency.
Tip: While ‘Disk Cleanup’ is definitely an excellent built-in tool, it even now will not completely clean up Pascal Error discovered on your PC. There are numerous programs like Chrome, Firefox, Microsoft Office and more, that cannot be cleaned with ‘Disk Cleanup’.
Since the Disk Cleanup on Windows has its shortcomings it is extremely encouraged that you use a specialized sort of challenging drive cleanup and privacy safety application like CCleaner. This system can clean up your full pc. If you run this plan after each day (it could be set up to run instantly) you are able to be assured that your Pc is generally clean, often operating speedy, and always absolutely free of any 36 error associated with your temporary files.
How Disk Cleanup can help
1. Click your ‘Start’ Button.
2. Style ‘Command’ into your search box. (no ‘enter’ yet)
3. When holding down in your ‘CTRL-SHIFT’ important go ahead and hit ‘Enter’.
4. You will see a ‘permission dialogue’ box.
5. Click ‘Yes’
6. You will see a black box open up plus a blinking cursor.
7. Variety in ‘cleanmgr’. Hit ‘Enter’.
8. Now Disk Cleanup will start calculating the amount of occupied disk space you will be able to reclaim.
9. Now a ‘Disk Cleanup dialogue box’ seems. There will be a series of checkboxes for you personally to pick. Generally it will likely be the ‘Temporary Files’ that consider up the vast majority of your disk area.
10. Verify the boxes that you want cleaned. Click ‘OK’.
How to repair
3. System Restore can also be a worthwhile device if you ever get stuck and just desire to get back to a time when your computer system was working ideal. It will work without affecting your pics, paperwork, or other crucial information. You can discover this option with your User interface.
Pascal Error
Manufacturer
Device
Operating System
Pascal Error 36 Begin Expected
5 out of
5
based on
26 ratings.
|
|
|
Выдает ошибку error 36: begin expected» Хотя программа вроде верно составлена
- Подписаться на тему
- Сообщить другу
- Скачать/распечатать тему
|
|
Program zad9; user Crt; Var F_in,F_out:Text; Matr : Array[1..50,1..40] of integer; Sum : Integer; str,stl : byte; i,j : byte; begin clrscr Assign(F_in,’Matr.txt’); Reset(F_in); str:=0; stl:=0; i:=0; begin inc(j); Read(F_in,Matr[i,j]); end; Readln(F_in); stl:=j; end; str:=i; Writeln(‘Число строк=’,’str,’Число столбцов=’,stl); Assign(F_out,’Sum.txt’); Rewrite(F_out); For i:=1 To str Do begin Som:=0; For j:=1 To stl Do Sum:=Sum+Matr[i,j]; Write(F_out,Sum:6); Writeln(‘В строке ‘i’сумма=’,Sum); end; Close(F_in); Close(F_out); readln(); End.
Сообщение отредактировано: volvo877 — |
volvo877 |
|
Moderator Рейтинг (т): 878 |
Издержки метода Copy+Paste… У тебя во-первых, UseR вместо UseS, во вторых пропущена точка с запятой, а в третьих, явно заголовок какого-то цикла, в котором ты увеличиваешь J и читаешь элемент Matr[i,j] пропущен. Отформатируй программу как положено, «лесенкой», и увидишь, что Begin-ов меньше, чем End-ов… Исправляй… |
Daiver |
|
Full Member Рейтинг (т): 5 |
Похоже пропущено 2 цикла, плюс куча опечаток Вот код без опечаток: Program zad9; uses Crt; Var F_in,F_out:Text; Matr : Array[1..50,1..40] of integer; Sum : Integer; str,stl : byte; i,j : byte; begin clrscr; Assign(F_in,’Matr.txt’); Reset(F_in); str:=0; stl:=0; i:=0; {Тут наверно пропущен цикл} begin {И еще один цикл} begin inc(j); Read(F_in,Matr[i,j]); end; Readln(F_in); stl:=j; end; str:=i; Writeln(‘Число строк=’,str,’Число столбцов=’,stl); Assign(F_out,’Sum.txt’); Rewrite(F_out); For i:=1 To str Do begin Sum:=0; For j:=1 To stl Do Sum:=Sum+Matr[i,j]; Write(F_out,Sum:6); Writeln(‘В строке ‘,i,’сумма=’,Sum); end; Close(F_in); Close(F_out); readln(); End. |
volvo877 |
|
Moderator Рейтинг (т): 878 |
Цитата Daiver @ Вот код без опечаток: И что делает этот код? Цитата Daiver @ {Тут наверно пропущен цикл} Цитата Daiver @ {И еще один цикл} , в результате код яйца выеденного не стоит… |
Daiver |
|
Full Member Рейтинг (т): 5 |
Просто код из первого поста без опечаток |
SHeLLin |
|
Program zad9; uses Crt; Var Assign(F_in,’Matr.txt’); End. Добавлено |
Daiver |
|
Full Member Рейтинг (т): 5 |
Цитата SHeLLin @ Вот вроде без ошибок, но пытаюсь транспонировать матрицу, вместо суммы столбцов, и не могу Цитата SHeLLin @
For i:=1 To str Do Этот код как раз и считает сумму столбцов, Транспонировать-в смысле поменять местами строки и столбцы? |
Vesper |
|
переписывай процедуру вывода, от строк rewrite(f_out); до close(f_in); |
volvo877 |
|
Moderator Рейтинг (т): 878 |
SHeLLin, ты кнопку видишь, на которой написано CODE=pas? Нажимать ее не пробовал? Или по-твоему, приводить код к нормальному виду, чтобы его можно было хотя бы читать, должен кто-то другой? Исправляй, в конце концов, сам. Первый раз я за тебя поправил, ты, как видно, внимания не обратил… И вообще, перестань переливать из пустого в порожнее. Где задание? Делаешь что-то, а что — фиг знает. И зачем тоже непонятно… Добавлено Цитата Daiver @ Этот код как раз и считает сумму столбцов, Ничего подобного. Считает он построчно суммы, ничего более… |
Daiver |
|
Full Member Рейтинг (т): 5 |
Цитата volvo877 @ Цитата (Daiver @ Сегодня, 15:41) Ошибся… Ничего более Добавлено for j:=1 to stl do begin for i:=1 to str do write (F_out,matr[i,j],’ ‘); writeln(F_out); end; Попробуй так |
SHeLLin |
|
volvo877 Мне нужно из матрицы, которая будет в файле matr, сделать транспонированную, и записать в файл |
Daiver |
|
Full Member Рейтинг (т): 5 |
SHeLLin Твой код только считает суммы элементов строк, Program zad9; Var F_in,F_out:Text; Matr : Array[1..50,1..40] of integer; Sum : Integer; str,stl : byte; i,j : byte; begin Assign(F_in,’Matr.txt’); Reset(F_in); str:=0; stl:=0; i:=0; While Not Eof(F_in) Do begin inc(i); j:=0; While Not Eoln(F_in) Do begin inc(j); Read(F_in,Matr[i,j]); end; Readln(F_in); stl:=j; end; str:=i; Assign(F_out,’Sum.txt’); Rewrite(F_out); for j:=1 to stl do begin for i:=1 to str do write (F_out,matr[i,j],’ ‘); writeln(F_out); end; Close(F_in); Close(F_out); End. |
SHeLLin |
|
Большое спасибо всем за помощь!!!!!!! Добавлено |
0 пользователей читают эту тему (0 гостей и 0 скрытых пользователей)
0 пользователей:
- Предыдущая тема
- Pascal
- Следующая тема
[ Script execution time: 0,0679 ] [ 15 queries used ] [ Generated: 22.09.23, 10:58 GMT ]
СООБЩЕНИЯ КОМПИЛЯТОРА ОБ ОШИБКАХ
§ Если в меню Options?Linker?Link Buffer, установлен параметр Memory, переключите его в значение Disk.
§ Возможно программа слишком велика, чтобы компилироваться в таком объеме памяти. Следует разбить ее на два или более модуля.
§ несоответствующее количество begin и end (не забудьте, что оператор case также заканчивается словом end);
§ включаемый файл заканчивается в середине раздела операторов. Каждый раздел операторов должен целиком помещаться в одном файле;
§ незаконченный комментарий.
§ несовместимые типы переменной и выражения в операторе присваивания;
§ несовместимые типы фактического и формального параметров в обращении к процедуре или функции;
§ тип выражения, несовместимый с типом индекса при индексировании массива;
§ несовместимые типы операндов в выражении.
§ Идентификатору функции можно присваивать значения только внутри раздела операторов данной функции.
§ Объектный файл .obj определяет идентификаторы PUBLIC, которые не находятся в сегменте CODE.
§ Идентификатор обозначает абсолютную переменную.
§ Идентификатор обозначает процедуру или функцию типа inline.
§ Файл .com содержит ссылки с размерами в байтах на перемещаемые идентификаторы. Такая ошибка происходит в случае, если вы используете операторы HIGH и DOWN с перемещаемыми идентификаторами или если вы ссылаетесь в директивах DB на перемещаемые идентификаторы.
§ Операнд ссылается на перемещаемый идентификатор, который не был определен в сегменте CODE или в сегменте DATA.
§ Операнд ссылается на процедуру EXTRN или функцию EXTRN со смещением, например CALL SortProc+8.
§ Процедуры или функции были описаны с помощью описания forward, но их определение не найдено.
§ Вы пытаетесь осуществить приведение типа выражения, когда разрешается только ссылка на переменную, процедуру или функцию.
§ Вы пытаетесь присвоить константу вне диапазона переменной.
§ Вы пытаетесь передать константу вне диапазона в качестве параметра процедуре или функции.
Размер локальных переменных, описанных в программе или функции, не может превышать 64 Кбайт.