Borderou de evaluare (job #3205243)
Utilizator | Data | 19 februarie 2024 09:41:34 | |
---|---|---|---|
Problema | Elementul majoritar | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:3:1: error: 'map' does not name a type
3 | map <long long,long long> a;
| ^~~
main.cpp: In function 'int maj(int)':
main.cpp:12:23: error: 'a' was not declared in this scope
12 | canditate=a[i];
| ^
main.cpp:14:29: error: 'a' was not declared in this scope
14 | }else if(canditate==a[i]){
| ^
main.cpp:21:13: error: 'a' was not declared in this scope
21 | if (a[i] == canditate)
| ^
main.cpp: In function 'int main()':
main.cpp:33:14: error: 'a' was not declared in this scope
33 | cin>>a[i];
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !