Search found 5 matches

by zaj_tam
Mon Mar 15, 2004 5:31 pm
Forum: Volume 3 (300-399)
Topic: 300 - Maya Calendar
Replies: 69
Views: 16266

Its hard to get a book in my language. Can you provide me with some links(online howtos)?

thx

(btw: i fucked the other code. first gives results, if you can run it ;))

EDIT: wohoo. I am on wrong answer. and i am happy ... debuging ;) Should i remove the code?
by zaj_tam
Sat Mar 13, 2004 7:38 pm
Forum: Volume 3 (300-399)
Topic: 300 - Maya Calendar
Replies: 69
Views: 16266

Thx. I fixed that, but still:
Your program has died with signal 11 (SIGSEGV). Meaning:

Invalid memory reference

Before crash, it ran during 0.002 seconds.

Anyway, i dont get it. The string is 6 chars long. The array is smth[6] - > that means 7 chars: smth[0] smth[1] smth[2] smth[3] smth[4 ...
by zaj_tam
Sat Mar 13, 2004 12:22 pm
Forum: Volume 3 (300-399)
Topic: 300 - Maya Calendar
Replies: 69
Views: 16266

Hm. I checked spelling. Is seems to be ok. Then why would windows run it without complaining? I'll try to check the arrays, not likely that i will find something (a true newbie :) ) though ...


thx for the tips anyway :)
by zaj_tam
Fri Mar 12, 2004 8:58 pm
Forum: Volume 3 (300-399)
Topic: 300 - Maya Calendar
Replies: 69
Views: 16266

300 -> Invalid memory reference

I get runtime error:

Your program has died with signal 11 (SIGSEGV). Meaning:

Invalid memory reference

Before crash, it ran during 0.000 seconds.

I have no idea what this means :(

The code:
#include <iostream.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <stdio.h ...
by zaj_tam
Thu Dec 25, 2003 5:47 pm
Forum: Volume 1 (100-199)
Topic: 144 - Student Grants
Replies: 21
Views: 6562

144


#include <iostream>
#include <stdlib.h>

using namespace std;

int n;
int k;
int student [25];
int resitev [25];
int stanje_l = 100;
int res = 0;
int prazno = 0;
int aha = 0;

int main(int argc, char *argv[])
{

cin >> n >> k;
if ( n != 0 && k != 0 ) {
for ( int a = n; a > 0; )
{

for ( int b ...

Go to advanced search