Borderou de evaluare (job #687739)

Utilizator avatar CopilMare Horia Majoleticoli CopilMare IP ascuns
Problemă Litere (clasa a 7-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 16 ian. 2023 22:58:26 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:16: 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:25:19: warning: array subscript has type 'char' [-Wchar-subscripts] 25 | if (!P[S[i]]) | ~~~^ main.cpp:26:18: warning: array subscript has type 'char' [-Wchar-subscripts] 26 | P[S[i]] = ++k; | ~~~^ main.cpp:28:15: warning: array subscript has type 'char' [-Wchar-subscripts] 28 | if (!P[S[N]]) | ~~~^ main.cpp:29:14: warning: array subscript has type 'char' [-Wchar-subscripts] 29 | P[S[N]] = ++k; | ~~~^ main.cpp:30:17: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long int' [-Wformat=] 30 | fprintf(g,"%d\n",a); | ~^ ~ | | | | int long int | %ld main.cpp:31:16: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long int*' [-Wformat=] 31 | fscanf(f,"%d",&C); | ~^ ~~ | | | | | long int* | int* | %ld main.cpp:34:21: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long int*' [-Wformat=] 34 | fscanf (f,"%d",&L[i]); | ~^ ~~~~~ | | | | | long int* | int* | %ld main.cpp:38:23: warning: array subscript has type 'char' [-Wchar-subscripts] 38 | S[i] = L[P[S[i]]]; | ~~~^ main.cpp:38:24: warning: array subscript has type 'char' [-Wchar-subscripts] 38 | S[i] = L[P[S[i]]]; | ~~~~~~^ main.cpp:15:11: 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 114 kb OK 10
2 1 ms 114 kb OK 10
3 1 ms 110 kb OK 10
4 1 ms 114 kb OK 10
5 1 ms 114 kb OK 10
6 1 ms 114 kb OK 10
7 1 ms 110 kb OK 10
8 1 ms 114 kb OK 10
9 9 ms 102 kb OK 10
10 7 ms 233 kb OK 10
Punctaj total 100