Borderou de evaluare (job #653575)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Rucsac | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 24 iun. 2022 16:07:40 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:13:13: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator>'
13 | if(a>max)
| ~^~~~
main.cpp:14:17: error: overloaded function with no contextual type information
14 | max=a;
| ^
main.cpp:16:15: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<'
16 | for(i=0; i<max; i++) {
| ~^~~~
main.cpp:17:15: error: 's' was not declared in this scope
17 | while(s<k && v[i]>0) {
| ^
main.cpp:21:12: error: 's' was not declared in this scope
21 | if(s==k) {
| ^
main.cpp:22:13: error: 'cnt' was not declared in this scope; did you mean 'int'?
22 | cnt++;
| ^~~
| int
main.cpp:27:11: error: 'cnt' was not declared in this scope; did you mean 'int'?
27 | cout<<cnt;
| ^~~
| int