Borderou de evaluare (job #701861)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Cuvinte (clasa a 5-a) | Compilator | cpp-32 |
Rundă | superoji1 | Status | evaluat |
Dată | 6 mar. 2023 17:34:37 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:10:12: error: 'cin' was not declared in this scope
10 | while (cin.get(v[i]))
| ^~~
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:21: error: 'n' was not declared in this scope
12 | for (int j=0; j<n; j++)
| ^
main.cpp:14:17: error: expected ';' before 'if'
14 | litera=0
| ^
| ;
15 | if (v[j]==' ' || v[j]==',' || v[j]=='.')
| ~~
main.cpp:9:9: warning: unused variable 'cntcuv' [-Wunused-variable]
9 | int cntcuv=0,i=0,litera=0;
| ^~~~~~