Borderou de evaluare (job #1313636)

Utilizator gapdanPopescu George gapdan Data 10 ianuarie 2015 22:08:39
Problema Secventa 5 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 10

Raport evaluator

Compilare: user.cpp:4:15: warning: suggest parentheses around ‘+’ inside ‘<<’ [-Wparentheses] #define NMAX 1<<20+2 ^ user.cpp:7:16: note: in expansion of macro ‘NMAX’ unsigned int v[NMAX]; ^ user.cpp: In function ‘bool cauta(int)’: user.cpp:13:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(i=0;i<H[r].size();++i) ^ user.cpp:14:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (H[r][i]==x) return 1; ^ user.cpp: In function ‘int sterge(int)’: user.cpp:30:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (*it==x && ok==0) ^ user.cpp:36:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] else if (*it==x) return 1; ^ user.cpp:25:14: warning: unused variable ‘i’ [-Wunused-variable] int ok=0,i; ^ user.cpp:26:9: warning: unused variable ‘k’ [-Wunused-variable] int k=0; ^ user.cpp: In function ‘long long int sol(unsigned int)’: user.cpp:50:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(nr>x) ^ user.cpp: In function ‘int main()’: user.cpp:62:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("secv5.in","r",stdin); ^ user.cpp:63:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("secv5.out","w",stdout); ^ user.cpp:64:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d%d",&n,&l,&u); ^ user.cpp:66:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%u",&v[i]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
112ms8036kbKilled by signal 11(SIGSEGV).0
212ms8056kbKilled by signal 11(SIGSEGV).0
316ms8100kbKilled by signal 11(SIGSEGV).0
432ms8292kbKilled by signal 11(SIGSEGV).0
544ms8424kbKilled by signal 11(SIGSEGV).0
6100ms9060kbKilled by signal 11(SIGSEGV).0
7232ms10648kbKilled by signal 11(SIGSEGV).0
8252ms11160kbKilled by signal 11(SIGSEGV).0
9332ms11944kbKilled by signal 11(SIGSEGV).0
101460ms20668kbOK10
Punctaj total10

Ceva nu functioneaza?