Borderou de evaluare (job #1713838)

Utilizator ButmalaiDanButmalai Dan ButmalaiDan Data 6 iunie 2016 18:54:23
Problema Texttrim Status done
Runda Arhiva Monthly Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:4:31: error: ‘s’ does not name a type ofstream cout("texttrim.out");s ^ user.cpp: In function ‘int main()’: user.cpp:9:8: error: ‘a’ was not declared in this scope cin>>a[i]; ^ user.cpp:13:7: error: ‘w’ was not declared in this scope cin>>w; ^ user.cpp:15:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(w>0&&i<s.length()){ ^ user.cpp:17:6: error: ‘a’ was not declared in this scope w-=a[s[i]-96]; ^ user.cpp:19:15: error: ‘a’ was not declared in this scope }else{ w-=a[0]; ^ user.cpp:26:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(i<s.length()){ ^ user.cpp:32:9: error: ‘a’ was not declared in this scope k+=(a[i]); ^ user.cpp:27:7: warning: unused variable ‘j’ [-Wunused-variable] int j=i; ^ user.cpp:38:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(!u){for(int i=0;i<rez.length()-k;i++)cout<<rez[i];cout<<"...";} ^

Ceva nu functioneaza?