Borderou de evaluare (job #2068017)

Utilizator mari2001Maria Ionescu mari2001 Data 17 noiembrie 2017 08:56:32
Problema Secv10 Status done
Runda Arhiva ICPC Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘long long int pref_st()’: user.cpp:14:9: warning: no return statement in function returning non-void [-Wreturn-type] p[i]=k;}} ^ user.cpp: In function ‘long long int pref_dr()’: user.cpp:22:9: warning: no return statement in function returning non-void [-Wreturn-type] p[i]=k;}} ^ user.cpp: In function ‘long long int kmp_st()’: user.cpp:32:18: warning: no return statement in function returning non-void [-Wreturn-type] oki[0][i-s+1]=1;}} ^ user.cpp: In function ‘long long int kmp_dr()’: user.cpp:42:14: warning: no return statement in function returning non-void [-Wreturn-type] oki[1][i]=1;}} ^ user.cpp: In function ‘int main()’: user.cpp:44:31: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("secv10.in","r",stdin); ^ user.cpp:45:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("secv10.out","w",stdout); ^ user.cpp:47:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%lld\n",&t); ^ user.cpp:49:11: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(ch+1); ^ user.cpp:51:12: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("\n"); ^ user.cpp:52:11: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(st+1); ^ user.cpp:54:12: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("\n"); ^ user.cpp:55:11: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(dr+1); ^ /tmp/ccUMFt8D.o: In function `main': user.cpp:(.text.startup+0x85): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
172ms2040kbOK100
Punctaj total100

Ceva nu functioneaza?