Borderou de evaluare (job #717397)
| Utilizator |
|
IP | ascuns |
|---|---|---|---|
| Problemă | Cezar (clasa a 5-a) | Compilator | cpp-32 |
| Rundă | Arhiva de probleme | Status | evaluat |
| Dată | 29 apr. 2023 20:00:28 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:14:21: error: 'strlen' was not declared in this scope
14 | for (int i=0; i<strlen(c); i++) {
| ^~~~~~
main.cpp:3:1: note: 'strlen' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
2 | #include <fstream>
+++ |+#include <cstring>
3 | using namespace std;
main.cpp:17:9: warning: this 'else' clause does not guard... [-Wmisleading-indentation]
17 | else
| ^~~~
main.cpp:19:13: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else'
19 | g << c[i];
| ^