Borderou de evaluare (job #3299349)
Utilizator | Data | 5 iunie 2025 15:29:47 | |
---|---|---|---|
Problema | Suma | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-32 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:9:5: error: expected ',' or ';' before 'int'
9 | int a,b,i,s=0;
| ^~~
main.cpp:10:9: error: 'a' was not declared in this scope
10 | f >>a >> b;
| ^
main.cpp:10:14: error: 'b' was not declared in this scope
10 | f >>a >> b;
| ^
main.cpp:11:10: error: 'i' was not declared in this scope
11 | for (i=1;i<=a;i++)
| ^
main.cpp:13:9: error: 's' was not declared in this scope
13 | s+=i*(i-1);
| ^
main.cpp:15:10: error: 's' was not declared in this scope
15 | g << s%b;
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !