Borderou de evaluare (job #686238)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Elementul Majoritar (clasa a 6-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 9 ian. 2023 11:52:10 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:7:5: error: 'in' was not declared in this scope; did you mean 'n'?
7 | in>>n;
| ^~
| n
main.cpp:23:9: error: 'out' was not declared in this scope
23 | out<<-1;
| ^~~
main.cpp:37:13: error: 'out' was not declared in this scope
37 | out<<x<<" "<<C;
| ^~~
main.cpp:39:14: error: 'out' was not declared in this scope
39 | else out<<-1;
| ^~~
main.cpp:41:2: error: expected '}' at end of input
41 | }
| ^
main.cpp:5:1: note: to match this '{'
5 | {
| ^