Borderou de evaluare (job #1238659)
Utilizator | Data | 7 octombrie 2014 14:25:48 | |
---|---|---|---|
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:32: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:71:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(list[x].size() == v-1) root = x;
^
user.cpp:11:13: error: invalid operands of types ‘__gnu_cxx::__promote_2<long int, long int, double, double>::__type {aka double}’ and ‘int’ to binary ‘operator%’
#define mod 1000000007
^
user.cpp:79:53: note: in expansion of macro ‘mod’
ans = (ans * pow(def[i],dp[root][i])) % mod;
^
user.cpp:82:27: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘long long int’ [-Wformat=]
printf("%ld\n",ans);
^
user.cpp:61: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:62: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:64:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%ld",&t);
^
user.cpp:67: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:69: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 !