Borderou de evaluare (job #803991)

Utilizator avatar Nicky_Dumitrache Nicolae Dumitrache Nicky_Dumitrache IP ascuns
Problemă Plus (clasa a 5-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 11 ian. 2025 22:36:38 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:22:23: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'unsigned int'} [-Wsign-compare] 22 | for (i = k = 0; i < strlen(c); i++) k += pow(10, i); | ~~^~~~~~~~~~~ main.cpp:22:46: error: 'pow' was not declared in this scope 22 | for (i = k = 0; i < strlen(c); i++) k += pow(10, i); | ^~~ main.cpp:24:5: error: 'sprintf_s' was not declared in this scope; did you mean 'sprintf'? 24 | sprintf_s(c,"%d", n); | ^~~~~~~~~ | sprintf main.cpp:27:14: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'unsigned int'} [-Wsign-compare] 27 | for (; i < strlen(c); i++) fo << c[i]; | ~~^~~~~~~~~~~