Borderou de evaluare (job #1370368)
Utilizator | Data | 3 martie 2015 14:09:45 | |
---|---|---|---|
Problema | Ubuntzei | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void dijkstra()’:
user.cpp:62:16: warning: large integer implicitly truncated to unsigned type [-Woverflow]
dmin[i]=inf;
^
user.cpp:68:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<v[t].size();i++)
^
user.cpp:69:66: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if((nrk[v[t][i].x]<nrk[t]+nodk[v[t][i].x] && nrk[t]<=k) || (nrk[v[t][i].x]==nrk[t] && dmin[v[t][i].x]>dmin[t]+v[t][i].c))
^
user.cpp:72:31: error: incompatible types in assignment of ‘short unsigned int*’ to ‘short unsigned int [2010]’
nrk[v[t][i].x]=nrk[t]+nodk[v[t][i].x];
^
user.cpp: In function ‘void citire()’:
user.cpp:38:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("ubuntzei.in","r",stdin);
^
user.cpp:39:32: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d\n%d",&n,&m,&k);
^
user.cpp:43:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf(" %d",&a);
^
user.cpp:49:35: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d",&a,&b,&c);
^
user.cpp: In function ‘void dijkstra()’:
user.cpp:78:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("ubuntzei.out","w",stdout);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !