Borderou de evaluare (job #720138)

Utilizator avatar Bla1234 Nerdvana 7 Sercaianu Mihai Bla1234 IP ascuns
Problemă Litere (clasa a 7-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 18 mai 2023 11:51:51 Scor 100

Raport evaluator

Compilare: main.cpp:7:13: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 7 | char *voc = "AEIOU"; | ^~~~~~~ main.cpp: In function 'int main()': main.cpp:15:20: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long int*' [-Wformat=] 15 | fscanf(f,"%d",&N); | ~^ ~~ | | | | | long int* | int* | %ld main.cpp:24:27: warning: array subscript has type 'char' [-Wchar-subscripts] 24 | if (!P[S[i]]) | ~~~^ main.cpp:25:30: warning: array subscript has type 'char' [-Wchar-subscripts] 25 | P[S[i]] = ++k; | ~~~^ main.cpp:27:19: warning: array subscript has type 'char' [-Wchar-subscripts] 27 | if (!P[S[N]]) | ~~~^ main.cpp:28:22: warning: array subscript has type 'char' [-Wchar-subscripts] 28 | P[S[N]] = ++k; | ~~~^ main.cpp:29:21: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long int' [-Wformat=] 29 | fprintf(g,"%d\n",a); | ~^ ~ | | | | int long int | %ld main.cpp:30:20: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long int*' [-Wformat=] 30 | fscanf(f,"%d",&C); | ~^ ~~ | | | | | long int* | int* | %ld main.cpp:33:29: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long int*' [-Wformat=] 33 | fscanf (f,"%d",&L[i]); | ~^ ~~~~~ | | | | | long int* | int* | %ld main.cpp:37:31: warning: array subscript has type 'char' [-Wchar-subscripts] 37 | S[i] = L[P[S[i]]]; | ~~~^ main.cpp:37:32: warning: array subscript has type 'char' [-Wchar-subscripts] 37 | S[i] = L[P[S[i]]]; | ~~~~~~^ main.cpp:15:15: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 245 kb OK 10
2 1 ms 245 kb OK 10
3 2 ms 241 kb OK 10
4 1 ms 245 kb OK 10
5 1 ms 245 kb OK 10
6 1 ms 241 kb OK 10
7 1 ms 245 kb OK 10
8 1 ms 245 kb OK 10
9 9 ms 233 kb OK 10
10 9 ms 229 kb OK 10
Punctaj total 100