#2592
AfisSimetric
Se dau n
șiruri de caractere care conțin cuvinte formate doar din litere mici și mari ale alfabetului englez, separate prin câte un singur spațiu.
Să se afișeze un nou șir format din primul cuvânt al fiecărui șir în ordinea citirii, al doilea cuvânt al fiecărui șir în ordinea citirii, etc. Dacă șirurile nu au același număr de cuvinte, se continuă acest proces, până când fiecare șir ajunge la final, tot în ordinea citirii.
Problema | AfisSimetric | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #53556208 | Utilizator | |
Fișier | afissimetric.cpp | Dimensiune | 549 B |
Data încărcării | 05 Noiembrie 2024, 09:10 | Scor / rezultat | Eroare de compilare |
afissimetric.cpp:15:1: error: stray '\357' in program for(j=0;j<s.size();j++){ ^ afissimetric.cpp:15:1: error: stray '\274' in program afissimetric.cpp:15:1: error: stray '\210' in program afissimetric.cpp:15:1: error: stray '\357' in program afissimetric.cpp:15:1: error: stray '\274' in program afissimetric.cpp:15:1: error: stray '\210' in program afissimetric.cpp:15:1: error: stray '\357' in program afissimetric.cpp:15:1: error: stray '\274' in program afissimetric.cpp:15:1: error: stray '\211' in program afissimetric.cpp:15:1: error: stray '\357' in program afissimetric.cpp:15:1: error: stray '\274' in program afissimetric.cpp:15:1: error: stray '\233' in program afissimetric.cpp:15:1: error: stray '\357' in program afissimetric.cpp:15:1: error: stray '\274' in program afissimetric.cpp:15:1: error: stray '\211' in program afissimetric.cpp:15:1: error: stray '\357' in program afissimetric.cpp:15:1: error: stray '\275' in program afissimetric.cpp:15:1: error: stray '\233' in program afissimetric.cpp:19:8: warning: missing terminating " character [enabled by default] strD = "''; ^ afissimetric.cpp:19:1: error: missing terminating " character strD = "''; ^ afissimetric.cpp:21:1: error: stray '\357' in program } ^ afissimetric.cpp:21:1: error: stray '\275' in program afissimetric.cpp:21:1: error: stray '\235' in program afissimetric.cpp:22:1: error: stray '\357' in program strD += sljl; ^ afissimetric.cpp:22:1: error: stray '\274' in program afissimetric.cpp:22:1: error: stray '\233' in program afissimetric.cpp:23:1: error: stray '\357' in program } ^ afissimetric.cpp:23:1: error: stray '\275' in program afissimetric.cpp:23:1: error: stray '\235' in program afissimetric.cpp:30:1: error: stray '\357' in program cout<<VIlin] [col]<^" "'; ^ afissimetric.cpp:30:1: error: stray '\274' in program afissimetric.cpp:30:1: error: stray '\275' in program afissimetric.cpp:30:1: error: stray '\357' in program afissimetric.cpp:30:1: error: stray '\274' in program afissimetric.cpp:30:1: error: stray '\273' in program afissimetric.cpp:30:1: error: stray '\357' in program afissimetric.cpp:30:1: error: stray '\274' in program afissimetric.cpp:30:1: error: stray '\275' in program afissimetric.cpp:30:30: warning: missing terminating ' character [enabled by default] cout<<VIlin] [col]<^" "'; ^ afissimetric.cpp:30:1: error: missing terminating ' character cout<<VIlin] [col]<^" "'; ^ afissimetric.cpp:3:20: error: expected ']' before ';' token string v[111][10011; int len [11]; ^ afissimetric.cpp: In function 'int main()': afissimetric.cpp:13:3: error: invalid use of non-lvalue array 5 += " "; ^ afissimetric.cpp:13:3: error: in evaluation of 'operator+=(int, char [2])' afissimetric.cpp:15:7: error: expected '(' before 'j' for(j=0;j<s.size();j++){ ^ afissimetric.cpp:15:15: error: invalid use of member function (did you forget the '()' ?) for(j=0;j<s.size();j++){ ^ afissimetric.cpp:15:28: error: expected ';' before 'j' for(j=0;j<s.size();j++){ ^ afissimetric.cpp:16:1: error: expected ')' before 'if' if(sljl = ' '){ ^ afissimetric.cpp:16:4: error: 'sljl' was not declared in this scope if(sljl = ' '){ ^ afissimetric.cpp:17:1: error: 'vIillk' was not declared in this scope vIillk] = strD; ^ afissimetric.cpp:17:7: error: expected ';' before ']' token vIillk] = strD; ^ afissimetric.cpp:20:1: error: expected primary-expression before 'continue' continue; ^ afissimetric.cpp:20:1: error: expected ';' before 'continue' afissimetric.cpp:24:1: error: expected ';' before 'len' len[i] = k; ^ afissimetric.cpp:25:18: error: 'max' cannot be used as a function max = max (max, k); ^ afissimetric.cpp:27:21: error: 'maxC' was not declared in this scope for (int col=0; col<maxC; col++) ^ afissimetric.cpp:30:7: error: 'VIlin' was not declared in this scope cout<<VIlin] [col]<^" "'; ^ afissimetric.cpp:30:19: error: expected ';' before 'col' cout<<VIlin] [col]<^" "'; ^ afissimetric.cpp:32:5: error: expected '}' at end of input } ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema AfisSimetric face parte din prima categorie. Soluția propusă de tine va fi evaluată astfel:
Suma punctajelor acordate pe testele utilizate pentru verificare este 100. Astfel, soluția ta poate obține cel mult 100 de puncte, caz în care se poate considera corectă.