Pagini recente » Borderou de evaluare (job #2582215) | Borderou de evaluare (job #360151) | Borderou de evaluare (job #2952499) | Borderou de evaluare (job #1013312) | Borderou de evaluare (job #2030155)
Borderou de evaluare (job #2030155)
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:90:24: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘short int*’ [-Wformat=]
scanf("%d %d",&n,&m);
^
user.cpp:90:24: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘short int*’ [-Wformat=]
user.cpp:94:38: warning: narrowing conversion of ‘tmp2’ from ‘int’ to ‘short int’ inside { } [-Wnarrowing]
v[tmp1].push_back({tmp2,tmp3});
^
user.cpp:94:38: warning: narrowing conversion of ‘tmp3’ from ‘int’ to ‘short int’ inside { } [-Wnarrowing]
user.cpp:95:38: warning: narrowing conversion of ‘tmp1’ from ‘int’ to ‘short int’ inside { } [-Wnarrowing]
v[tmp2].push_back({tmp1,tmp3});
^
user.cpp:95:38: warning: narrowing conversion of ‘tmp3’ from ‘int’ to ‘short int’ inside { } [-Wnarrowing]
user.cpp:98:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<v[1].size();++i)
^
user.cpp:113:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<v[tmp1].size();++i)
^
user.cpp:88:24: warning: variable ‘cn’ set but not used [-Wunused-but-set-variable]
int tmp1,tmp2,tmp3,cn;
^
user.cpp:85: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:86: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:90: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:93: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 | 3028kb | Cost incorect | 0 |
2 | 4ms | 3020kb | Cost incorect | 0 |
3 | 4ms | 3028kb | Cost incorect | 0 |
4 | 4ms | 3024kb | Cost incorect | 0 |
5 | 4ms | 3032kb | Cost incorect | 0 |
6 | 4ms | 2616kb | Cost incorect | 0 |
7 | 4ms | 2632kb | Cost incorect | 0 |
8 | 4ms | 3012kb | Cost incorect | 0 |
9 | 4ms | 3016kb | Cost incorect | 0 |
10 | 32ms | 3240kb | Cost incorect | 0 |
Punctaj total | 0 |