Borderou de evaluare (job #800626)

Utilizator avatar DeakDarius HackerPrime DeakDarius IP ascuns
Problemă Cezar1 (clasa a 7-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 22 dec. 2024 18:15:26 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:10:8: warning: this 'for' clause does not guard... [-Wmisleading-indentation] 10 | for(int i = 0 ; i <= 9 ; i ++ ) | ^~~ main.cpp:12:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' 12 | for(int i = 0 ; i < strlen(c) ; i ++ ){ | ^~~ main.cpp:12:29: error: 'strlen' was not declared in this scope 12 | for(int i = 0 ; i < strlen(c) ; i ++ ){ | ^~~~~~ main.cpp:2:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>' 1 | #include<fstream> +++ |+#include <cstring> 2 | using namespace std; main.cpp:26:30: error: 'strlen' was not declared in this scope 26 | for(int i = 0 ; i < strlen(c); i ++ ) | ^~~~~~ main.cpp:26:30: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>' main.cpp:7:9: warning: unused variable 'n' [-Wunused-variable] 7 | int n , l = 0 , x = 0 ; | ^ main.cpp:7:21: warning: unused variable 'x' [-Wunused-variable] 7 | int n , l = 0 , x = 0 ; | ^ main.cpp:8:16: warning: unused variable 'cif' [-Wunused-variable] 8 | char c[256],cif[101]; | ^~~