Borderou de evaluare (job #2955912)
Utilizator | Data | 18 decembrie 2022 11:24:08 | |
---|---|---|---|
Problema | Litere | Status | done |
Runda | cnsh_16_12 | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:8:1: error: 'cin' was not declared in this scope
8 | cin>>n;
| ^~~
main.cpp:2:1: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
1 | #include <fstream>
+++ |+#include <iostream>
2 |
main.cpp:12:16: warning: array subscript has type 'char' [-Wchar-subscripts]
12 | sum+=f[s1];
| ^~
main.cpp:13:7: warning: array subscript has type 'char' [-Wchar-subscripts]
13 | f[s]++;
| ^
main.cpp:15:1: error: 'cout' was not declared in this scope
15 | cout<<sum;
| ^~~~
main.cpp:15:1: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !