Borderou de evaluare (job #634606)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Elementul Majoritar (clasa a 6-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 21 feb. 2022 18:27:29 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:4:13: error: variable 'std::ifstream fin' has initializer but incomplete type
4 | ifstream fin("majoritar.in");
| ^
main.cpp:5:14: error: variable 'std::ofstream fout' has initializer but incomplete type
5 | ofstream fout("majoritar.out");
| ^
main.cpp: In function 'int main()':
main.cpp:10:14: error: expected ']' before ';' token
10 | int v[n+1;
| ^
| ]
main.cpp:12:14: error: 'v' was not declared in this scope
12 | fin>>v[i];
| ^
main.cpp:13:12: error: 'v' was not declared in this scope
13 | el_maj=v[1];
| ^
main.cpp:25:13: error: 'ap' was not declared in this scope
25 | ap++;
| ^~
main.cpp:27:8: error: 'ap' was not declared in this scope
27 | if(ap<=n/2)
| ^~