Borderou de evaluare (job #1238663)
Utilizator | Data | 7 octombrie 2014 14:29:36 | |
---|---|---|---|
Problema | Divisorgraph | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void dfs(long int)’:
user.cpp:33:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i=0;i<list[nod].size();i++){
^
user.cpp: In function ‘int main()’:
user.cpp:72:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(list[x].size() == v-1) root = x;
^
user.cpp:80:53: error: invalid operands of types ‘__gnu_cxx::__promote_2<long int, long int, double, double>::__type {aka double}’ and ‘long long int’ to binary ‘operator%’
ans = (ans * pow(def[i],dp[root][i])) % mod;
^
user.cpp:62:41: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("divisorgraph.in","r",stdin);
^
user.cpp:63:43: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("divisorgraph.out","w",stdout);
^
user.cpp:65:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%ld",&t);
^
user.cpp:68:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%ld %ld",&v,&e);
^
user.cpp:70:35: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%ld %ld",&x,&y);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !