Skip to Content

Reviewer notes

Use this space to describe your geocache location, container, and how it's hidden to your reviewer. If you've made changes, tell the reviewer what changes you made. The more they know, the easier it is for them to publish your geocache. This note will not be visible to the public when your geocache is published.

Mystery Cache

SourceCode

A cache by FvS1968 Send Message to Owner Message this owner
Hidden : 7/10/2017
Difficulty:
2 out of 5
Terrain:
2 out of 5

Size: Size: micro (micro)

Join now to view geocache location details. It's free!

Watch

How Geocaching Works

Please note Use of geocaching.com services is subject to the terms and conditions in our disclaimer.

Geocache Description:

The cache is not at the given coordinates. Below is the source code for a program that gives the coordinates to the cache. Plain ANSI C, no funny stuff here. Compile and execute or alternatively just read and calculate manually. 

Bring your own pen.  

Please put the cache back as it was and make sure it sticks.


//  SourceCode.c
//  GC SourceCode
//
//  Created by FvS1968 on 09-07-2017.

#include <stdio.h>
#include <math.h>
#include <limits.h>
int foobar=0;
const int m=105;
const int n=785;

int calc(int a) {
    int fvs=0;
    int svs=0;

    // Do something
    switch (foobar) {
        case 6: case 0: case 2: case 5: case 3: case 4: case 9: case 8: case 7:
            while (fvs < SCHAR_MAX-m) {
                fvs++;
            }
            foobar++;
            return fvs;
    }
    while (svs <= SCHAR_MIN+n+72) {
        svs++;
    }
    foobar++;
    return svs;
}

int think(int b) {
    int avs=1000;
    // Do something else
    switch (foobar) {
        case 2: case 5: case 3: case 1: case 6:
            return SCHAR_MAX-(m-13);
    }
    return avs-n-35;
}

int main(int argc, const char * argv[]) {
    // Here we go...
    int x=0;
    int xx=0;
    const int foo=852;
    const int bar=842;
    int y=0;
    int yy=0;

    yy=think(foo);  // Better think before calculating coordinates
    x=calc(bar);    // Time to calculate the coordinates
    y=think(foo);   // What if I did not think correct the first time? Better think again!
    xx=calc(bar);   // And then re-calculate the coordinates, hopefully correct this time.
    printf("N60 %d.%d\nE25 %d.%d\n\n", x, xx, y, yy);
    return 0;
}



Additional Hints (Decrypt)

tpp FbheprPbqr.p
./n.bhg

Decryption Key

A|B|C|D|E|F|G|H|I|J|K|L|M
-------------------------
N|O|P|Q|R|S|T|U|V|W|X|Y|Z

(letter above equals below, and vice versa)



 

Find...

27 Logged Visits

Found it 21     Write note 1     Temporarily Disable Listing 1     Enable Listing 1     Publish Listing 1     Needs Maintenance 1     Owner Maintenance 1     

View Logbook

**Warning! Spoilers may be included in the descriptions or links.

Current Time:
Last Updated: on 1/8/2018 11:42:17 AM (UTC-08:00) Pacific Time (US & Canada) (7:42 PM GMT)
Rendered From:Unknown
Coordinates are in the WGS84 datum

Return to the Top of the Page