Borderou de evaluare (job #1518325)

Utilizator lauratalaatlaura talaat lauratalaat Data 5 noiembrie 2015 20:30:11
Problema Abc2 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:29:18: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[10000001]’ [-Wformat=] scanf("%s",&s);k=0; ^ user.cpp:32:25: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[21]’ [-Wformat=] while(scanf("%s",&s1)!=EOF){ ^ user.cpp:26:30: warning: variable ‘k2’ set but not used [-Wunused-but-set-variable] int nr1,nr2,p1,p2,n,i,k1,k2,nnr1,nnr2,r,cate,j; ^ user.cpp:27:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("abc2.in","r",stdin); ^ user.cpp:28:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("abc2.out","w",stdout); ^ user.cpp:29:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s",&s);k=0; ^ user.cpp:26:23: warning: ‘n’ may be used uninitialized in this function [-Wmaybe-uninitialized] int nr1,nr2,p1,p2,n,i,k1,k2,nnr1,nnr2,r,cate,j; ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
10ms252kbOK100
20ms252kbOK10
38ms272kbOK10
4136ms320kbOK10
5Depăşit540kbTime limit exceeded.0
6Depăşit1440kbTime limit exceeded.0
7Depăşit5496kbTime limit exceeded.0
8Depăşit10384kbTime limit exceeded.0
9Depăşit10376kbTime limit exceeded.0
10Depăşit10376kbTime limit exceeded.0
Punctaj total0

Ceva nu functioneaza?