Borderou de evaluare (job #2207222)
| Utilizator | Data | 25 mai 2018 11:11:20 | |
|---|---|---|---|
| Problema | A+B | Status | done |
| Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
user.cpp:16:1: error: ‘pair’ does not name a type
pair <int,int> tan (segm x){
^~~~
user.cpp: In function ‘int cmp(segm, segm)’:
user.cpp:22:14: error: ‘dreapta’ was not declared in this scope
int cmp (dreapta x , dreapta y){
^~~~~~~
user.cpp:22:34: error: expected ‘)’ before ‘y’
int cmp (dreapta x , dreapta y){
^
user.cpp:22:35: error: expression list treated as compound expression in initializer [-fpermissive]
int cmp (dreapta x , dreapta y){
^
user.cpp:22:9: warning: unused variable ‘cmp’ [-Wunused-variable]
int cmp (dreapta x , dreapta y){
^~~
user.cpp:30:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
user.cpp: In function ‘int main()’:
user.cpp:36:23: error: ‘n’ was not declared in this scope
fscanf (fin,"%d",&n);
^
user.cpp:36:24: error: expression list treated as compound expression in initializer [-fpermissive]
fscanf (fin,"%d",&n);
^
user.cpp:36:24: warning: left operand of comma operator has no effect [-Wunused-value]
user.cpp:37:5: error: ‘s’ was not declared in this scope
s=0;
^
user.cpp:38:10: error: ‘i’ was not declared in this scope
for (i=1;i<=n;i++){
^
user.cpp:39:31: error: ‘x’ was not declared in this scope
fscanf (fin,"%d%d%d",&x,&y1,&y2);
^
user.cpp:39:34: error: ‘y1’ was not declared in this scope
fscanf (fin,"%d%d%d",&x,&y1,&y2);
^~
user.cpp:39:38: error: ‘y2’ was not declared in this scope
fscanf (fin,"%d%d%d",&x,&y1,&y2);
^~
user.cpp:39:40: error: ‘fscanf’ cannot be used as a function
fscanf (fin,"%d%d%d",&x,&y1,&y2);
^
user.cpp:40:9: error: ‘mini’ was not declared in this scope
mini=min(mini,min (y1,y2));
^~~~
user.cpp:40:33: error: ‘min’ was not declared in this scope
mini=min(mini,min (y1,y2));
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
