Borderou de evaluare (job #1132919)

Utilizator Kira96Denis Mita Kira96 Data 4 martie 2014 08:19:52
Problema Componente biconexe Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void build()’: user.cpp:5:6: error: ‘i’ was not declared in this scope for(i=0;i<n;++i) ^ user.cpp:5:12: error: ‘n’ was not declared in this scope for(i=0;i<n;++i) ^ user.cpp:7:3: error: ‘key’ was not declared in this scope key[i]=s[i]; ^ user.cpp:7:10: error: ‘s’ was not declared in this scope key[i]=s[i]; ^ user.cpp:8:3: error: ‘sa’ was not declared in this scope sa[i]=i; ^ user.cpp:10:7: error: ‘sa’ was not declared in this scope sort(sa,sa+n); ^ user.cpp:10:13: error: ‘n’ was not declared in this scope sort(sa,sa+n); ^ user.cpp:10:14: error: ‘sort’ was not declared in this scope sort(sa,sa+n); ^ user.cpp:11:6: error: ‘k’ was not declared in this scope for(k=1;k<n;k<<=1) ^ user.cpp:13:7: error: ‘i’ was not declared in this scope for(i=0;i<n;++i) ^ user.cpp:14:11: error: ‘key’ was not declared in this scope if(!i||key[sa[i]]!=key[sa[i-1]]) ^ user.cpp:15:9: error: missing template arguments before ‘[’ token rank[sa[i]]=i; ^ user.cpp:17:9: error: missing template arguments before ‘[’ token rank[sa[i]]=rank[sa[i-1]]; ^ user.cpp:17:21: error: missing template arguments before ‘[’ token rank[sa[i]]=rank[sa[i-1]]; ^ user.cpp:20:7: error: ‘i’ was not declared in this scope for(i=0;i<n;++i) ^ user.cpp:22:5: error: ‘key’ was not declared in this scope key[i]=1LL*rank[i]+rank[i+k]+1; ^ user.cpp:22:20: error: missing template arguments before ‘[’ token

Ceva nu functioneaza?