# Nested map without SObject

I'm using a nested map to store inputs from a Visualforce page and when I try to write the code to retrieve those inputs, I am getting "Error: Compile Error: Initial term of field expression must be a concrete SObject: MAP>> at line..."

Since I am not dealing with SObjects or fields in the nested map, I'm unclear on what the compiler wants me to do.

Here's some of the code and there error is reported on allvals, which is
Public Map>> allvals {get;set;} and is initialized in a separate method than the one causing the error:

``````        for (String s :allvals.keyset()){ //tables
for (String r :allvals.get(s).keyset()){ //rows
Integer tempTot=0;
for (String c :allvals.get(s).get(r).keyset()){ //columns
if (c!=TOTAL) tempTot+=allvals.get[s].get[r].get[c];
``````

`````` if (c!=TOTAL) tempTot+=allvals.get[s].get[r].get[c];
`````` if (c!=TOTAL) tempTot+=allvals.get(s).get(r).get(c);
{"ft_lang_label":"__label__en","ft_lang_prob":0.77493554,"math_prob":0.6006329,"size":789,"snap":"2020-45-2020-50","text_gpt3_token_len":202,"char_repetition_ratio":0.11210191,"word_repetition_ratio":0.0,"special_character_ratio":0.25602028,"punctuation_ratio":0.16959064,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9628165,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-11-29T02:07:56Z\",\"WARC-Record-ID\":\"<urn:uuid:1d9a5c53-c1e3-49ef-af94-9c85ac491646>\",\"Content-Length\":\"148709\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:bd19d42a-fa2b-4fd5-994a-542abb47bdf8>\",\"WARC-Concurrent-To\":\"<urn:uuid:168c92d8-7f0f-4c1a-8b59-2bf8764d4284>\",\"WARC-IP-Address\":\"151.101.1.69\",\"WARC-Target-URI\":\"https://salesforce.stackexchange.com/questions/59771/nested-map-without-sobject\",\"WARC-Payload-Digest\":\"sha1:RTL4KRD4XGBDL77MN4FPA7S7ZV4PLO6S\",\"WARC-Block-Digest\":\"sha1:VNBXPRHCN46Q36CNVAONSZKQFUIBONRL\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-50/CC-MAIN-2020-50_segments_1606141195967.34_warc_CC-MAIN-20201129004335-20201129034335-00538.warc.gz\"}"}