Borderou de evaluare (job #3368952)

Utilizator noemienoemie noemie Data 16 octombrie 2026 17:36:21
Problema Secvmax Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:19:34: error: array must be initialized with a brace-enclosed initializer 19 | int n, m, i,cnt=0, v[100001]=0; | ^ main.cpp:20:21: error: array must be initialized with a brace-enclosed initializer 20 | int poz[100001]=0; | ^ main.cpp:21:35: error: array must be initialized with a brace-enclosed initializer 21 | int query[10001], sol[100001]=0; | ^ main.cpp:22:5: error: 'cin' was not declared in this scope 22 | cin>>n>>m; | ^~~ main.cpp:5:1: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'? 4 | #include<vector> +++ |+#include <iostream> 5 | using namespace std; main.cpp:29:14: error: 'q' was not declared in this scope 29 | cin>>q[i]; | ^ main.cpp:35:15: error: 'j' was not declared in this scope 35 | while(j<=m) { | ^ main.cpp:36:22: error: 'q' was not declared in this scope 36 | if(v[i]<=q[j];) | ^ main.cpp:36:27: error: expected primary-expression before ')' token 36 | if(v[i]<=q[j];) | ^ main.cpp:41:35: error: expected ')' before ';' token 41 | unire(v[i], v[i-1]; | ~ ^ | ) main.cpp:19:17: warning: unused variable 'cnt' [-Wunused-variable] 19 | int n, m, i,cnt=0, v[100001]=0; | ^~~ main.cpp:21:9: warning: unused variable 'query' [-Wunused-variable] 21 | int query[10001], sol[100001]=0; | ^~~~~ Non zero exit status: 1

Ceva nu functioneaza?