Borderou de evaluare (job #1730255)

Utilizator SilviuIIon Silviu SilviuI Data 16 iulie 2016 17:23:27
Problema Texttrim Status done
Runda Arhiva Monthly Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:47:13: warning: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wliteral-suffix] freopen("texttrim.out,"w",stdout); ^ user.cpp:47:29: warning: missing terminating " character [enabled by default] freopen("texttrim.out,"w",stdout); ^ user.cpp:47:5: error: missing terminating " character freopen("texttrim.out,"w",stdout); ^ user.cpp: In function ‘int main()’: user.cpp:47:28: error: expected ‘)’ before ‘w’ freopen("texttrim.out,"w",stdout); ^ user.cpp:49:18: error: ‘i’ was not declared in this scope for (int i=0;i<=26;i++) scanf("%d",&t[i]); gets(s); ^ user.cpp:49:27: error: expected ‘;’ before ‘)’ token for (int i=0;i<=26;i++) scanf("%d",&t[i]); gets(s); ^ user.cpp:46:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("texttrim.in","r",stdin); ^ user.cpp:49:55: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] for (int i=0;i<=26;i++) scanf("%d",&t[i]); gets(s); ^ user.cpp:51:14: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(s+1); n=strlen(s+1); ^ user.cpp:53:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&l); ^

Ceva nu functioneaza?