Borderou de evaluare (job #2998861)
Utilizator | Data | 10 martie 2023 10:17:48 | |
---|---|---|---|
Problema | Numere 6 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:6:1: error: expected ',' or ';' before 'ofstream'
6 | ofstream fout("numere6.out")
| ^~~~~~~~
main.cpp: In function 'void solve()':
main.cpp:14:12: error: 'b' was not declared in this scope
14 | if(b % i == 0)
| ^
main.cpp:16:13: error: 'k' was not declared in this scope
16 | k++;
| ^
main.cpp: In function 'void calculate()':
main.cpp:24:25: error: 'a' was not declared in this scope
24 | for(int i = 1; i <= a; ++i)
| ^
main.cpp:28:25: error: 'a' was not declared in this scope
28 | for(int i = 1; i <= a-k; ++i)
| ^
main.cpp:28:27: error: 'k' was not declared in this scope
28 | for(int i = 1; i <= a-k; ++i)
| ^
main.cpp:32:5: error: 'r' was not declared in this scope
32 | r = (f1 / f2) % 9973;
| ^
main.cpp:33:5: error: 'fout' was not declared in this scope
33 | fout << r;
| ^~~~
main.cpp: In function 'int main()':
main.cpp:38:12: error: 'a' was not declared in this scope
38 | fin >> a >> b;
| ^
main.cpp:38:17: error: 'b' was not declared in this scope
38 | fin >> a >> b;
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !