Borderou de evaluare (job #1493568)

Utilizator GinguIonutGinguIonut GinguIonut Data 29 septembrie 2015 17:24:33
Problema Abc2 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:25:22: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[10000005]’ [-Wformat=] scanf("%s", &line); ^ user.cpp:27:27: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[22]’ [-Wformat=] while(scanf("%s", &cuv)==1) ^ user.cpp:40:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(i=0;i<n;i++) ^ user.cpp:43:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(i=1;i<n;i++) ^ user.cpp:23:35: 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:24:37: 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:25:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s", &line); ^ user.cpp:26:9: warning: ‘nmax’ may be used uninitialized in this function [-Wmaybe-uninitialized] int nmax; ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
116ms11984kbOK10100
216ms11984kbOK10
316ms12008kbOK10
420ms12092kbOK10
536ms12412kbOK10
6104ms13424kbOK10
7392ms17632kbOK10
8824ms22508kbOK10
9884ms22512kbOK10
10716ms22512kbOK10
Punctaj total100

Ceva nu functioneaza?