Borderou de evaluare (job #3364462)
| Utilizator | Data | 3 septembrie 2026 16:19:56 | |
|---|---|---|---|
| Problema | Suma6 | Status | done |
| Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
main.cpp:28:15: error: invalid use of non-static data member 'box::NMAX'
28 | int frecv[NMAX];
| ^~~~
main.cpp:27:15: note: declared here
27 | const int NMAX=1e6+1;
| ^~~~
main.cpp: In member function 'void box::set()':
main.cpp:31:14: error: 'frecv' was not declared in this scope
31 | fill(frecv, frecv + NMAX, 0);
| ^~~~~
main.cpp: In member function 'void box::insert(int)':
main.cpp:39:20: error: 'frecv' was not declared in this scope
39 | rez += frecv[s - x];
| ^~~~~
main.cpp:41:9: error: 'frecv' was not declared in this scope
41 | frecv[x]++;
| ^~~~~
main.cpp: In member function 'void box::erase(int)':
main.cpp:44:9: error: 'frecv' was not declared in this scope
44 | frecv[x]--;
| ^~~~~
main.cpp: In function 'int32_t main()':
main.cpp:80:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<query>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
80 | for (int i = 0; i < q.size(); ++i) {
| ~~^~~~~~~~~~
main.cpp:100:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<query>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
100 | for (int i = 0; i < q.size(); ++i) {
| ~~^~~~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
