Borderou de evaluare (job #2988643)
Utilizator | Data | 5 martie 2023 10:45:08 | |
---|---|---|---|
Problema | Cufar | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:6:5: error: 'ifstream' was not declared in this scope
6 | ifstream in("cufar.in");
| ^~~~~~~~
main.cpp:7:5: error: 'ofstream' was not declared in this scope
7 | ofstream out("cufar.out");
| ^~~~~~~~
main.cpp:11:5: error: 'vector' was not declared in this scope
11 | vector<int> input(nb_max, 0);
| ^~~~~~
main.cpp:11:12: error: expected primary-expression before 'int'
11 | vector<int> input(nb_max, 0);
| ^~~
main.cpp:12:12: error: expected primary-expression before 'int'
12 | vector<int> divides(nb_max, 0);
| ^~~
main.cpp:13:12: error: expected primary-expression before 'int'
13 | vector<int> prim(nb_max, true);
| ^~~
main.cpp:17:5: error: 'in' was not declared in this scope; did you mean 'n'?
17 | in >> p >> n;
| ^~
| n
main.cpp:27:9: error: 'input' was not declared in this scope; did you mean 'int'?
27 | input[l] = k;
| ^~~~~
| int
main.cpp:36:13: error: 'prim' was not declared in this scope
36 | if (prim[i])
| ^~~~
main.cpp:41:17: error: 'divides' was not declared in this scope
41 | divides[m]++;
| ^~~~~~~
main.cpp:42:21: error: 'input' was not declared in this scope; did you mean 'int'?
42 | if (input[m] == divides[m])
| ^~~~~
| int
main.cpp:47:5: error: 'out' was not declared in this scope
47 | out << s << endl;
| ^~~
main.cpp:47:17: error: 'endl' was not declared in this scope
47 | out << s << endl;
| ^~~~
main.cpp:9:9: warning: unused variable 'nb_max' [-Wunused-variable]
9 | int nb_max = 1000000;
| ^~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !