Borderou de evaluare (job #3181979)
Utilizator | Data | 8 decembrie 2023 16:15:16 | |
---|---|---|---|
Problema | Take 5 | Status | done |
Runda | ce_concurs | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:9:1: error: 'map' does not name a type
9 | map <int, int> suf[NMAX], ipref[NMAX], pref;
| ^~~
main.cpp: In function 'int main()':
main.cpp:21:7: error: 'ipref' was not declared in this scope
21 | ipref[j][a[i]+a[j]]++;
| ^~~~~
main.cpp:22:7: error: 'suf' was not declared in this scope
22 | suf[i][a[i]+a[j]]++;
| ^~~
main.cpp:27:16: error: 'ipref' was not declared in this scope
27 | for(auto j:ipref[i])
| ^~~~~
main.cpp:29:7: error: 'pref' was not declared in this scope
29 | pref[j.first]+=j.second;
| ^~~~
main.cpp:34:16: error: 'suf' was not declared in this scope
34 | for(auto j:suf[i+1])
| ^~~
main.cpp:37:12: error: 'pref' was not declared in this scope
37 | ans+=pref[s-j.first-a[i]]*j.second;
| ^~~~
main.cpp:39:5: error: 'suf' was not declared in this scope
39 | suf[i+1].clear();
| ^~~
main.cpp:40:16: error: 'ipref' was not declared in this scope
40 | for(auto j:ipref[i-1])
| ^~~~~
main.cpp:42:7: error: 'pref' was not declared in this scope
42 | pref[j.first]-=j.second;
| ^~~~
main.cpp:44:5: error: 'ipref' was not declared in this scope
44 | ipref[i-1].clear();
| ^~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !