Pagini recente » Borderou de evaluare (job #1134517) | Borderou de evaluare (job #1064630) | Borderou de evaluare (job #52273) | Borderou de evaluare (job #1182489) | Borderou de evaluare (job #2030146)
Borderou de evaluare (job #2030146)
Raport evaluator
Compilare:
user.cpp: In function ‘void adauga(ceva, int)’:
user.cpp:55:7: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses]
if(sol[x.nod]==0) //aici verific in loc de vector de viz
^
user.cpp: In function ‘int main()’:
user.cpp:88:24: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘short int*’ [-Wformat=]
scanf("%d %d",&n,&m);
^
user.cpp:88:24: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘short int*’ [-Wformat=]
user.cpp:92:38: warning: narrowing conversion of ‘tmp2’ from ‘int’ to ‘short int’ inside { } [-Wnarrowing]
v[tmp1].push_back({tmp2,tmp3});
^
user.cpp:92:38: warning: narrowing conversion of ‘tmp3’ from ‘int’ to ‘short int’ inside { } [-Wnarrowing]
user.cpp:93:38: warning: narrowing conversion of ‘tmp1’ from ‘int’ to ‘short int’ inside { } [-Wnarrowing]
v[tmp2].push_back({tmp1,tmp3});
^
user.cpp:93:38: warning: narrowing conversion of ‘tmp3’ from ‘int’ to ‘short int’ inside { } [-Wnarrowing]
user.cpp:96:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<v[1].size();++i)
^
user.cpp:111:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<v[tmp1].size();++i)
^
user.cpp:86:24: warning: variable ‘cn’ set but not used [-Wunused-but-set-variable]
int tmp1,tmp2,tmp3,cn;
^
user.cpp:83:32: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("apm.in","r",stdin);
^
user.cpp:84:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("apm.out","w",stdout);
^
user.cpp:88:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d",&n,&m);
^
user.cpp:91:44: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d",&tmp1,&tmp2,&tmp3);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 4ms | 3024kb | Cost incorect | 0 |
2 | 4ms | 3020kb | Cost incorect | 0 |
3 | 4ms | 3024kb | Cost incorect | 0 |
4 | 4ms | 3024kb | Cost incorect | 0 |
5 | 4ms | 3024kb | Cost incorect | 0 |
6 | 4ms | 2620kb | Cost incorect | 0 |
7 | 4ms | 2632kb | Cost incorect | 0 |
8 | 4ms | 3012kb | Cost incorect | 0 |
9 | 4ms | 3020kb | Cost incorect | 0 |
10 | 32ms | 3232kb | Cost incorect | 0 |
Punctaj total | 0 |