Borderou de evaluare (job #654483)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Cuvinte (clasa a 5-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 6 iul. 2022 12:57:29 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:2:2: error: invalid preprocessing directive #includde; did you mean #include?
2 | #includde <cctype.h>
| ^~~~~~~~
| include
main.cpp: In function 'int main()':
main.cpp:15:67: error: 'isdigigt' was not declared in this scope; did you mean 'isdigit'?
15 | if(!(isalpha(ch) || isdigit(ch) ) && (isalpha(prev_ch) || isdigigt(prev_ch)));
| ^~~~~~~~
| isdigit
main.cpp:15:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
15 | if(!(isalpha(ch) || isdigit(ch) ) && (isalpha(prev_ch) || isdigigt(prev_ch)));
| ^~
main.cpp:16:11: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
16 | s++;
| ^
main.cpp:10:9: warning: unused variable 'cc' [-Wunused-variable]
10 | int cc,s=0,prev_ch=0;
| ^~
main.cpp:8:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
8 | freopen("cuvinte.in", "r", stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:9:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
9 | freopen("cuvinte.out", "w", stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~