Borderou de evaluare (job #2484013)
Utilizator | Data | 30 octombrie 2019 17:08:22 | |
---|---|---|---|
Problema | Triang | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:7:11: error: conflicting declaration 'std::ofstream f'
ofstream f("triang.out")
^
main.cpp:6:10: note: previous declaration as 'std::ifstream f'
ifstream f("triang.in");
^
main.cpp: In function 'float det(int, int, int, int)':
main.cpp:15:5: error: expected ';' before 'return'
return 0;
^~~~~~
main.cpp:16:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
main.cpp: In function 'int main()':
main.cpp:20:8: error: 'n' was not declared in this scope
f>>n;
^
main.cpp:30:54: error: 'j2' was not declared in this scope
if(fabs(det(a[i][1],a[i][2],a[j][1],a[j2])-det(a[i][1],a[i][2],a[k][1],a[k][2]))<e) h++;
^~
main.cpp:26:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(j=2; j<=n-1; j++)
^~~
main.cpp:32:13: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
cout<<h;
^~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !