Borderou de evaluare (job #2094681)

Utilizator inquisitorAnders inquisitor Data 26 decembrie 2017 13:17:28
Problema Undo2 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int Find(int)’: user.cpp:16:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(; step < position[x].size() - 1; step <<= 1); ^ user.cpp:20:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if((i + step < position[x].size()) && (position[x][i + step] <= idx) && (s[position[x][i + step]] == x)) ^ user.cpp: In function ‘int main()’: user.cpp:31:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("undo2.in", "r", stdin); ^ user.cpp:32:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("undo2.out", "w", stdout); ^ user.cpp:34:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &N); ^ user.cpp:38:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d", &Q, &x); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
1Depăşit2576kbTime limit exceeded.0
2Depăşit2576kbTime limit exceeded.0
3Depăşit2576kbTime limit exceeded.0
4Depăşit2580kbTime limit exceeded.0
5Depăşit2580kbTime limit exceeded.0
6Depăşit2580kbTime limit exceeded.0
7Depăşit2580kbTime limit exceeded.0
8Depăşit2584kbTime limit exceeded.0
9Depăşit2580kbTime limit exceeded.0
10Depăşit2576kbTime limit exceeded.0
Punctaj total0

Ceva nu functioneaza?