Borderou de evaluare (job #2910179)
| Utilizator | Data | 18 iunie 2022 17:09:56 | |
|---|---|---|---|
| Problema | Subsecventa de suma maxima | Status | done |
| Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
main.cpp:3:20: error: expected ';' before ':' token
3 | using namespace std:
| ^
| ;
main.cpp:3:20: error: expected unqualified-id before ':' token
main.cpp: In function 'int main()':
main.cpp:10:5: error: 'n' was not declared in this scope; did you mean 'in'?
10 | in>>n;
| ^
| in
main.cpp:11:5: error: 'i' was not declared in this scope; did you mean 'in'?
11 | for(i=1;i<=n;i++)
| ^
| in
main.cpp:13:6: error: 'a' was not declared in this scope
13 | in>>a;
| ^
main.cpp:14:5: error: 's' was not declared in this scope
14 | if(s+a>0)
| ^
main.cpp:17:8: error: 'smax' was not declared in this scope
17 | if(s>smax)
| ^~~~
main.cpp:20:4: error: 'pozf' was not declared in this scope
20 | pozf=i;
| ^~~~
main.cpp:26:3: error: 'pozi' was not declared in this scope
26 | pozi=i+1;
| ^~~~
main.cpp:31:3: error: 'pozi' was not declared in this scope
31 | pozi=i;
| ^~~~
main.cpp:36:6: error: 'smax' was not declared in this scope
36 | out<<smax<<" "<<pozi<<" "<<pozf;
| ^~~~
main.cpp:36:17: error: 'pozi' was not declared in this scope
36 | out<<smax<<" "<<pozi<<" "<<pozf;
| ^~~~
main.cpp:36:28: error: 'pozf' was not declared in this scope
36 | out<<smax<<" "<<pozi<<" "<<pozf;
| ^~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
