Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Geek Culture / [LOCKED] Brutal compilation errors

Author
Message
Gery
20
Years of Service
User Offline
Joined: 24th Jan 2004
Location:
Posted: 21st Feb 2004 20:12
please help. When try to compile something in Borland C, i get this mess:

[18:27:55] <Geri> [C++Warning] main.cpp(43): Ambiguous operators need parentheses.
[18:27:55] <Geri> [C++Warning] main.cpp(43): Ambiguous operators need parentheses.
[18:27:55] <Geri> [LinkerError] Fatal: Error detected (LME271).
[18:27:55] <Geri> [LinkerError] Fatal: Error detected (LME339).
[18:27:55] <Geri> [LinkerWarning] Failed to create state file C:/Languagez/projects/szamol2.tds (error code 0).
[18:27:55] <Geri> [LinkerWarning] Unable to perform incremental link - performing full link....
[18:27:55] <Geri> [LinkerError] Fatal: Error detected (LME271).
[18:27:55] <Geri> [LinkerError] Fatal: Error detected (LME339).
[18:27:55] <Geri> [LinkerWarning] Failed to create state file C:/Languagez/projects/szamol2.tds (error code 0).


the code was:
/*
1. feladatsor, 1. és 2. feladat
*/
#include <iostream>
#include <stdlib.h>

using namespace std;

int maradek(int x, int y);
int szorzas(const int x, const int y);

int main(int argc, char *argv[])
{
// Változók deklarálása
int t[2];
int i;
int muvelet;
char ch;
bool next;

cout << endl << endl;
do {
// Művelet kiválasztása
do {
cout << "1 - Maradek kiszamitasa" << endl << "2 - Osszeszorzas" << endl;
cout << "Ird be a muvelet szamat: ";
cin >> muvelet;
if (muvelet < 1 || muvelet > 2)
{
cout << "Nincs ilyen muvelet!" << endl;
next = false;
}
else
{
next = true;
}
} while (!next);

// Értékadás, értékek ellenőrzése
for (i=0;i<2;i++)
{
do {
cout << i+1 << ". szam: ";
cin >> t[i];
if (t[i] < 1)
{
cout << "Csak termeszetes szamokkal dolgozok!" << endl;
next = false;
}
else
{
next = true;
}
} while (!next);
}

// Eredmény kiszámítása
if (muvelet == 1) cout << "A maradek: " << maradek(t[0], t[1]) << endl;
else if (muvelet == 2) cout << "A szorzas eredmenye: " << szorzas(t[0], t[1]) << endl;

// Folytatás (?)
cout << "Meg egyszer? (I/N) ";
cin >> ch;
cout << endl << endl;
} while (ch != 'n' && ch != 'N');
return 0;
}

/*
1. feladatsor, 1. feladat
Határozzuk meg egy természetes számnak egy adott természetes számmal való
osztásakor keletkező maradékát és a hányadost úgy, hogy a szorzás és osztás
műveleteit nem használhatjuk!
*/
int maradek(int x, int y)
{
if (x < y) return x;
else
{
while (x >= y) x -= y;
return x;
}
}

/*
1. feladatsor, 2. feladat
Számítsuk ki két természetes szám szorzatát! Csak összeadást és kivonást
használhatunk!
*/
int szorzas(const int x, const int y)
{
int i, m = 0;
if (x < y) for (i=1;i<=x;i++) m += y;
else for (i=1;i<=y;i++) m += x;
return m;
}




but not only with this...

ALL CODE!!!

...and then the evil hungarian terrorist killed the peacefull shootin' soviet soldiers...
Lord Ozzum
21
Years of Service
User Offline
Joined: 29th Oct 2003
Location: Beyond the Realms of Death
Posted: 21st Feb 2004 20:18
it's back...

Come crawling faster, Obey your Master, Your life burns faster, Obey your MASTER!!!
MASTER!!!
---Master of Puppets, Metallica
Gery
20
Years of Service
User Offline
Joined: 24th Jan 2004
Location:
Posted: 21st Feb 2004 20:29
MrX: thank jou for helping!

...and then the evil hungarian terrorist killed the peacefull shootin' soviet soldiers...
AnDrEy
20
Years of Service
User Offline
Joined: 11th Jan 2004
Location: In Da Club
Posted: 21st Feb 2004 20:34
dude don't diss soviet soldiers- (soviet in russian means council so is incorrect anyway)
Gery
20
Years of Service
User Offline
Joined: 24th Jan 2004
Location:
Posted: 21st Feb 2004 20:39
look the first post.

somebody know the answeer?

...and then the evil hungarian terrorist killed the peacefull shootin' soviet soldiers...
AnDrEy
20
Years of Service
User Offline
Joined: 11th Jan 2004
Location: In Da Club
Posted: 21st Feb 2004 20:47 Edited at: 21st Feb 2004 20:49
-its in hungarian
Like who the f_ wants to learn hungarian so he can debug a stolen code by som1 who disses Russian soldiers??!!?!!?!!!!??
(C:/Languagez/projects/szamol2.tds (its probably the cheap hungarian translator))
Lord Ozzum
21
Years of Service
User Offline
Joined: 29th Oct 2003
Location: Beyond the Realms of Death
Posted: 21st Feb 2004 20:52
my stepmom's Russian!!!

Come crawling faster, Obey your Master, Your life burns faster, Obey your MASTER!!!
MASTER!!!
---Master of Puppets, Metallica
Lord Ozzum
21
Years of Service
User Offline
Joined: 29th Oct 2003
Location: Beyond the Realms of Death
Posted: 21st Feb 2004 20:53
YaObueTeba! (since i don't know how to do the sybmols on this computer, that will suffice)

Come crawling faster, Obey your Master, Your life burns faster, Obey your MASTER!!!
MASTER!!!
---Master of Puppets, Metallica
AnDrEy
20
Years of Service
User Offline
Joined: 11th Jan 2004
Location: In Da Club
Posted: 21st Feb 2004 20:55
Glupi Loh (lol anyone who knows a little Russian or likes Russia is automatically on my good list)


Хотите Ñ?тать Ñ?ильным и ловким? Ð?аучитьÑ?Ñ? обходить препÑ?Ñ‚Ñ?твиÑ? и выживать
под преÑ?Ñ?ом? Хотите выработать громкий командный голоÑ?? Хотите научитьÑ?Ñ?
прыгать Ñ? разбега в длину?
Приходите. ЗанÑ?тиÑ? каждый день Ñ? шеÑ?ти чаÑ?ов утра!
Ð?дреÑ?: моÑ?ковÑ?кое метро.
Lord Ozzum
21
Years of Service
User Offline
Joined: 29th Oct 2003
Location: Beyond the Realms of Death
Posted: 21st Feb 2004 21:00
i can't legally workit's sad
how'd ya do it (I'm not the greatest reader of it, but i can understand bits and pieces of it, seeing as she hasn't taught me much besides cursing in it, but i live with Mom who knows no Russian)

Come crawling faster, Obey your Master, Your life burns faster, Obey your MASTER!!!
MASTER!!!
---Master of Puppets, Metallica
AnDrEy
20
Years of Service
User Offline
Joined: 11th Jan 2004
Location: In Da Club
Posted: 21st Feb 2004 21:05
I didnt type it, it was just a joke on [href]www.anekdot.ru[/href] I just came across that joke when I was answering the post and decided to paste it in
Приходит SMS Ñ?ообщение:
Доброй фее! Деньги проебала, бухаю Ñ? крыÑ?ами в тыкве. ТвоÑ? Золушка.
the_winch
21
Years of Service
User Offline
Joined: 1st Feb 2003
Location: Oxford, UK
Posted: 21st Feb 2004 21:08
Quote: "Brutal compilation errors"


Never heard you use brual before geri, you are starting to get a bit better at speaking american.

Our civilization faces three great dangers. The first is destruction by a nuclear war, the second is being crippled with overpopulation and the third is the Age of Leisure.
Lord Ozzum
21
Years of Service
User Offline
Joined: 29th Oct 2003
Location: Beyond the Realms of Death
Posted: 21st Feb 2004 21:09
no, he's getting s better translator

Come crawling faster, Obey your Master, Your life burns faster, Obey your MASTER!!!
MASTER!!!
---Master of Puppets, Metallica
adr
21
Years of Service
User Offline
Joined: 21st May 2003
Location: Job Centre
Posted: 21st Feb 2004 23:01
"Ambiguous operators need parentheses"

Wherever you use an operator (+, -, *...) surround the expression with brackets.

For examlple...
cout << i+1 << ". szam: ";
becomes
cout << (i+1) << ". szam: "

denki
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 21st Feb 2004 23:29
Don't worry ge3ri...

I can help



But I wont.



Because you're a loser.

Currently working with...

newbi 2 basic
21
Years of Service
User Offline
Joined: 20th Apr 2003
Location: Inverness, Scotland
Posted: 21st Feb 2004 23:41
LMAO!

anyway... Summer is coming
Gery
20
Years of Service
User Offline
Joined: 24th Jan 2004
Location:
Posted: 21st Feb 2004 23:57
ehh... now i see the bug.

The compiler die if i want to declare something...

AnDrEy:
i سرويس پک ويندوز jour سرويس پک ويندوز and سرويس پک ويندوز u.

...and then the evil hungarian terrorist killed the peacefull shootin' soviet soldiers...
Lord Ozzum
21
Years of Service
User Offline
Joined: 29th Oct 2003
Location: Beyond the Realms of Death
Posted: 22nd Feb 2004 00:02
denki, who are you on EOD?

Come crawling faster, Obey your Master, Your life burns faster, Obey your MASTER!!!
MASTER!!!
---Master of Puppets, Metallica
OSX Using Happy Dude
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 22nd Feb 2004 01:43
This isn't going to go anywhere, so its now locked...


The place for all great plug-ins.
XP3000+,1Gb RAM,FX5600,1Mb ADSL,Router,.Net 2003 Pro & me

Login to post a reply

Server time is: 2024-11-24 20:23:40
Your offset time is: 2024-11-24 20:23:40