Pagini recente » Borderou de evaluare (job #2416367) | Borderou de evaluare (job #1729215) | Borderou de evaluare (job #2947071) | Borderou de evaluare (job #1684726) | Borderou de evaluare (job #1683575)
Borderou de evaluare (job #1683575)
Raport evaluator
Compilare:
user.cpp: In function ‘void update(int, int, int)’:
user.cpp:14:10: warning: statement has no effect [-Wunused-value]
for(x;x<=n;x=x+((x^(x-1))&x))
^
user.cpp: In function ‘int query(int, int)’:
user.cpp:20:10: warning: statement has no effect [-Wunused-value]
for(x;x>0;x=x-((x^(x-1))&x))
^
user.cpp: In function ‘void dfs(int)’:
user.cpp:29:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i=0;i<queries[node].size();i++)
^
user.cpp:31:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i=0;i<g[node].size();i++)
^
user.cpp: In function ‘int main()’:
user.cpp:37:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("undo.in","r",stdin);
^
user.cpp:38:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("undo.out","w",stdout);
^
user.cpp:40:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&n,&m);
^
user.cpp:45:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&type);
^
user.cpp:47:37: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d",&x,&y,&z);
^
user.cpp:55:32: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&x,&y);
^
user.cpp:61:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&x);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 16ms | 12028kb | OK | 10 |
2 | 28ms | 12464kb | OK | 10 |
3 | 32ms | 12492kb | OK | 10 |
4 | 132ms | 14548kb | OK | 10 |
5 | 136ms | 14976kb | OK | 10 |
6 | 696ms | 26508kb | OK | 10 |
7 | 656ms | 24512kb | OK | 10 |
8 | 696ms | 26412kb | OK | 10 |
9 | 672ms | 24372kb | OK | 10 |
10 | 708ms | 26348kb | OK | 10 |
Punctaj total | 100 |