Borderou de evaluare (job #1493469)

Utilizator Alexa2001Alexa Tudose Alexa2001 Data 29 septembrie 2015 14:09:02
Problema Swap Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:10:1: error: ‘deque’ does not name a type deque<int> z[27]; ^ user.cpp: In function ‘int main()’: user.cpp:36:5: error: ‘z’ was not declared in this scope z[a[i]-'a'].push_back(i); ^ user.cpp:40:27: error: ‘z’ was not declared in this scope if(nr[b[i]-'a']>= z[b[i]-'a'].size() ) {printf("-1\n");return 0;} ^ user.cpp:41:14: error: ‘z’ was not declared in this scope X[i]=z[b[i]-'a'][nr[b[i]-'a']], ++nr[b[i]-'a']; ^ user.cpp:26:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("swap.in","r",stdin); ^ user.cpp:27:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("swap.out","w",stdout); ^ user.cpp:29:12: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(a); ^ user.cpp:30:12: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(b); ^

Ceva nu functioneaza?