Borderou de evaluare (job #1313638)

Utilizator gapdanPopescu George gapdan Data 10 ianuarie 2015 22:09:48
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:31:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (*it==x && ok==0) ^ user.cpp:38:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] 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:54:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(nr>x) ^ user.cpp: In function ‘int main()’: user.cpp:66: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:67: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:68: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:70: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
112ms8040kbKilled by signal 11(SIGSEGV).0
212ms8052kbKilled by signal 11(SIGSEGV).0
316ms8100kbKilled by signal 11(SIGSEGV).0
436ms8296kbKilled by signal 11(SIGSEGV).0
544ms8428kbKilled by signal 11(SIGSEGV).0
6112ms9064kbKilled by signal 11(SIGSEGV).0
7236ms10640kbKilled by signal 11(SIGSEGV).0
8284ms11164kbKilled by signal 11(SIGSEGV).0
9324ms11944kbKilled by signal 11(SIGSEGV).0
101428ms20668kbOK10
Punctaj total10

Ceva nu functioneaza?