Borderou de evaluare (job #1689006)
Utilizator | Data | 13 aprilie 2016 21:04:05 | |
---|---|---|---|
Problema | Traseu | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int bf()’:
user.cpp:10:20: error: expected primary-expression before ‘)’ token
for(i=1;i<=n+1;i+){
^
user.cpp: At global scope:
user.cpp:21:8: error: expected constructor, destructor, or type conversion before ‘(’ token
freopen("traseu.in", "r", stdin);
^
user.cpp:22:8: error: expected constructor, destructor, or type conversion before ‘(’ token
freopen("traseu.out", "w", stdout);
^
user.cpp: In function ‘int main()’:
user.cpp:36:16: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
while(temp=bf()){
^
user.cpp:24:8: warning: unused variable ‘j’ [-Wunused-variable]
int i,j,k,a,b,c,temp,min_cap,nod;
^
user.cpp:24:10: warning: unused variable ‘k’ [-Wunused-variable]
int i,j,k,a,b,c,temp,min_cap,nod;
^
user.cpp:25:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &n, &m);
^
user.cpp:27:32: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d", &a, &b, &c);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !