Borderou de evaluare (job #3153682)
Utilizator | Data | 30 septembrie 2023 18:00:25 | |
---|---|---|---|
Problema | Secventa 5 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:11:1: error: expected ',' or ';' before 'int'
11 | int n,l,u;
| ^~~
main.cpp: In function 'void read()':
main.cpp:17:10: error: 'n' was not declared in this scope
17 | fin>>n>>l>>u;
| ^
main.cpp:17:13: error: 'l' was not declared in this scope
17 | fin>>n>>l>>u;
| ^
main.cpp:17:16: error: 'u' was not declared in this scope
17 | fin>>n>>l>>u;
| ^
main.cpp: In function 'int solve(int)':
main.cpp:28:22: error: 'n' was not declared in this scope
28 | for (int i=1; i<=n; i++)
| ^
main.cpp: In function 'int main()':
main.cpp:49:8: error: 'l' was not declared in this scope
49 | if(l==1)
| ^
main.cpp:51:21: error: 'u' was not declared in this scope
51 | fout<<solve(u);
| ^
main.cpp:54:18: error: 'l' was not declared in this scope
54 | int s1=solve(l-1);
| ^
main.cpp:55:18: error: 'u' was not declared in this scope
55 | int s2=solve(u);
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !