Borderou de evaluare (job #2557508)
Utilizator | Data | 25 februarie 2020 20:46:22 | |
---|---|---|---|
Problema | Secventa 2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:6:5: error: 'sum' does not name a type
sum,a,b,c;
^~~
main.cpp: In function 'bool comp(int, int)':
main.cpp:10:15: error: request for member 'sum' in 'x', which is of non-class type 'int'
return (x.sum<y.sum);
^~~
main.cpp:10:21: error: request for member 'sum' in 'y', which is of non-class type 'int'
return (x.sum<y.sum);
^~~
main.cpp: In function 'int cautbin(int, int, int)':
main.cpp:17:8: error: 'v' was not declared in this scope
if(v[mid]==x)return mid;
^
main.cpp: In function 'int main()':
main.cpp:26:5: error: 'in' was not declared in this scope
in>>n>>s;
^~
main.cpp:26:9: error: 'n' was not declared in this scope
in>>n>>s;
^
main.cpp:26:12: error: 's' was not declared in this scope
in>>n>>s;
^
main.cpp:32:12: error: 'v' was not declared in this scope
sp=v[i]+v[j]+v[k];
^
main.cpp:35:13: error: 'cnt' was not declared in this scope
cnt++;
^~~
main.cpp:42:16: error: 'cnt' was not declared in this scope
sort(a+1,a+cnt+1,comp);
^~~
main.cpp:42:26: error: 'sort' was not declared in this scope
sort(a+1,a+cnt+1,comp);
^
main.cpp:46:36: error: 'struct suma' has no member named 'sum'; did you mean 'suma'?
p=cautbin(poz,cnt,s-a[poz].sum);
^~~
main.cpp:47:19: error: 'struct suma' has no member named 'sum'; did you mean 'suma'?
if(a[poz].sum+)
^~~
main.cpp:47:23: error: expected primary-expression before ')' token
if(a[poz].sum+)
^
main.cpp:48:5: error: expected primary-expression before '}' token
}
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !