Borderou de evaluare (job #2556876)
Utilizator | Data | 25 februarie 2020 11:46:38 | |
---|---|---|---|
Problema | Parc | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:121:1: warning: "/*" within comment [-Wcomment]
/*
main.cpp:86:1: error: unterminated comment
/* testul nr.3
^
main.cpp: In function 'int swaap(int&, int&)':
main.cpp:18:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
main.cpp: In function 'void solve()':
main.cpp:72:43: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
if(a*v[i].a+b*o[j].a+c==0 && a*v[i].b+b*o[j].b+c==0 || a*v[i].a+b*o[j].b+c==0 && a*v[i].b+b*o[j].a+c==0)
~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:69:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(int i=1;i<=k;i++)
^~~
main.cpp:76:9: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
fprintf(out,"\n%d",sol);
^~~~~~~
main.cpp: In function 'void read()':
main.cpp:21:57: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
fscanf(in,"%d %d %d %d %d %d",&x,&y,&xg,&yg,&xp,&yp);
^
main.cpp:22:23: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
fscanf(in,"%d",&m);
^
main.cpp:29:33: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
fscanf(in,"%d %d",&a,&b);
^
main.cpp:44:23: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
fscanf(in,"%d",&n);
^
main.cpp:46:33: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
fscanf(in,"%d %d",&a,&b);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !