Borderou de evaluare (job #2042838)

Utilizator stelian2000Stelian Chichirim stelian2000 Data 19 octombrie 2017 11:46:10
Problema A+B Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:31:19: error: ‘n’ was not declared in this scope scanf("%d%d",&n,&m); ^ user.cpp:31:22: error: ‘m’ was not declared in this scope scanf("%d%d",&n,&m); ^ user.cpp:40:11: error: ‘poz’ was not declared in this scope while(poz<=n) ^ user.cpp:43:15: error: ‘poz1’ was not declared in this scope while(poz1<=m && v1[poz1].st>=poz && v1[poz1].st<=poz+bucket-1) {v2[++l]=v1;poz1++;} ^ user.cpp:43:81: error: no match for ‘operator=’ (operand types are ‘str’ and ‘str [200010]’) while(poz1<=m && v1[poz1].st>=poz && v1[poz1].st<=poz+bucket-1) {v2[++l]=v1;poz1++;} ^ user.cpp:43:81: note: candidates are: user.cpp:8:8: note: str& str::operator=(const str&) struct str ^ user.cpp:8:8: note: no known conversion for argument 1 from ‘str [200010]’ to ‘const str&’ user.cpp:8:8: note: str& str::operator=(str&&) user.cpp:8:8: note: no known conversion for argument 1 from ‘str [200010]’ to ‘str&&’ user.cpp:49:16: error: ‘mn’ was not declared in this scope if(mn[v[i]]==0) mn[v[i]]=mx[v[i]]=i; ^ user.cpp:49:38: error: ‘mx’ was not declared in this scope if(mn[v[i]]==0) mn[v[i]]=mx[v[i]]=i; ^ user.cpp:50:26: error: ‘mx’ was not declared in this scope else {sol+=i-mx[v[i]];mx[v[i]]=i;} ^ user.cpp:53:9: error: ‘rez’ was not declared in this scope rez[v2[1].poz]=sol; ^ user.cpp:58:20: error: ‘mn’ was not declared in this scope if(mn[v[i]]==0) mn[v[i]]=mx[v[i]]=i; ^ user.cpp:58:42: error: ‘mx’ was not declared in this scope if(mn[v[i]]==0) mn[v[i]]=mx[v[i]]=i; ^ user.cpp:59:30: error: ‘mx’ was not declared in this scope else {sol+=i-mx[v[i]];mx[v[i]]=i;} ^ user.cpp:67:26: error: ‘mn’ was not declared in this scope sol+=mn[v[j]]-j; ^ user.cpp:79:17: error: expected primary-expression before ‘}’ token } ^

Ceva nu functioneaza?