Borderou de evaluare (job #686232)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Litere (clasa a 7-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 9 ian. 2023 10:27:46 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:30:14: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
30 | cin >> c + 1;
| ~~^~~
main.cpp:33:24: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
33 | if(vowel(c[i]) && !vowel(c[i+1]) or !vowel(c[i]) && vowel(c[i+1])){
| ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
main.cpp:45:5: error: 'memset' was not declared in this scope
45 | memset(mp1,0,sizeof(mp1));
| ^~~~~~
main.cpp:2:1: note: 'memset' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
1 | #include <fstream>
+++ |+#include <cstring>
2 | using namespace std;
main.cpp:28:21: warning: unused variable 'two' [-Wunused-variable]
28 | int n, one = 0, two = 0;
| ^~~