Borderou de evaluare (job #1290648)
Raport evaluator
Compilare:
user.cpp: In function ‘void startDfs(long int, long int)’:
user.cpp:55:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(long i=0;i<list[nod].size();i++){
^
user.cpp: In function ‘long int getLCA(long int, long int)’:
user.cpp:89:19: warning: suggest parentheses around ‘-’ inside ‘<<’ [-Wparentheses]
for(long pas=1<<maxLog-2;pas;pas>>=1,pasL--){
^
user.cpp: In function ‘int main()’:
user.cpp:135:52: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘int*’ [-Wformat=]
int type, x, y; scanf("%ld %ld %ld",&type,&x,&y);
^
user.cpp:135:52: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 3 has type ‘int*’ [-Wformat=]
user.cpp:135:52: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 4 has type ‘int*’ [-Wformat=]
user.cpp:116:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("disconnect.in","r",stdin);
^
user.cpp:117:41: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("disconnect.out","w",stdout);
^
user.cpp:119:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%ld %ld",&N,&M);
^
user.cpp:122:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%ld %ld",&x,&y);
^
user.cpp:135:53: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
int type, x, y; scanf("%ld %ld %ld",&type,&x,&y);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 2452kb | OK | 10 |
2 | 8ms | 2568kb | OK | 10 |
3 | 584ms | 2992kb | OK | 10 |
4 | 652ms | 3508kb | OK | 10 |
5 | 1204ms | 10380kb | OK | 10 |
6 | 772ms | 11424kb | OK | 10 |
7 | 828ms | 11988kb | OK | 10 |
8 | 1324ms | 12836kb | OK | 10 |
9 | 1352ms | 12868kb | OK | 10 |
10 | 1392ms | 12928kb | OK | 10 |
Punctaj total | 100 |