Borderou de evaluare (job #3364461)

Utilizator nicoleta_iancuIancu Nicoleta nicoleta_iancu Data 3 septembrie 2026 16:17:37
Problema Suma6 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:9:13: error: expected ';' before 'long' 9 | #define int long long | ^~~~ main.cpp:29:5: note: in expansion of macro 'int' 29 | int frecv[NMAX]; | ^~~ main.cpp: In member function 'void box::set()': main.cpp:32:14: error: 'frecv' was not declared in this scope 32 | fill(frecv, frecv + NMAX, 0); | ^~~~~ main.cpp: In member function 'void box::insert(long long int)': main.cpp:40:20: error: 'frecv' was not declared in this scope 40 | rez += frecv[s - x]; | ^~~~~ main.cpp:42:9: error: 'frecv' was not declared in this scope 42 | frecv[x]++; | ^~~~~ main.cpp: In member function 'void box::erase(long long int)': main.cpp:45:9: error: 'frecv' was not declared in this scope 45 | frecv[x]--; | ^~~~~ main.cpp: In function 'int32_t main()': main.cpp:81:23: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<query>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 81 | for (int i = 0; i < q.size(); ++i) { | ~~^~~~~~~~~~ main.cpp:110:23: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<query>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 110 | for (int i = 0; i < q.size(); ++i) { | ~~^~~~~~~~~~ Non zero exit status: 1

Ceva nu functioneaza?