Borderou de evaluare (job #276814)

Utilizator avatar Druffbaum Popescu Vlad Druffbaum IP ascuns
Problemă Piramida1 (clasa a 6-a) Compilator c
Rundă Arhiva de probleme Status evaluat
Dată 7 feb. 2017 18:40:41 Scor 0

Raport evaluator

Eroare de compilare: main.c: In function 'main': main.c:24:22: error: implicit declaration of function 'tolower' [-Wimplicit-function-declaration] 24 | fprintf(f, "%c", tolower(piramida[i])); | ^~~~~~~ main.c:2:1: note: include '<ctype.h>' or provide a declaration of 'tolower' 1 | #include <stdio.h> +++ |+#include <ctype.h> 2 | main.c:29:20: error: implicit declaration of function 'toupper' [-Wimplicit-function-declaration] 29 | piramida[i] = (toupper(piramida[i]) - 'A') % 9 + 1; | ^~~~~~~ main.c:29:20: note: include '<ctype.h>' or provide a declaration of 'toupper' main.c:18:3: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 18 | fscanf(f, "%s", piramida); | ^~~~~~~~~~~~~~~~~~~~~~~~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 0 ms 240 kb OK 10
2 0 ms 240 kb OK 10
3 0 ms 244 kb OK 10
4 0 ms 248 kb OK 10
5 0 ms 244 kb OK 10
6 0 ms 244 kb OK 10
7 0 ms 244 kb OK 10
8 0 ms 240 kb OK 10
9 0 ms 248 kb OK 10
10 0 ms 240 kb OK 10
Punctaj total 0