Detalii evaluare #54877871

Rezumat problemă

Detalii

Problema PalindromPropozitie Operații I/O palindrom.in/palindrom.out
Limita timp 0.1 secunde Limita memorie Total: 64 MB / Stivă 8 MB
Id soluție #54877871 Utilizator Alexandra Buzlea (alexandra_buzlea)
Fișier palindrompropozitie.cpp Dimensiune 7.01 KB
Data încărcării 11 Decembrie 2024, 08:47 Scor / rezultat Eroare de compilare

Evaluare


Mesaj compilare

palindrompropozitie.cpp: In function 'int palindrom(char*)':
palindrompropozitie.cpp:11:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(i=0; i<strlen(s); i++)

                        ^
palindrompropozitie.cpp: At global scope:
palindrompropozitie.cpp:44:13: error: redefinition of 'std::ifstream cin'
 ifstream cin("palindrom.in");

             ^
palindrompropozitie.cpp:5:10: error: 'std::ifstream cin' previously declared here
 ifstream cin("palindrom.in");

          ^
palindrompropozitie.cpp:45:14: error: redefinition of 'std::ofstream cout'
 ofstream cout("palindrom.out");

              ^
palindrompropozitie.cpp:6:10: error: 'std::ofstream cout' previously declared here
 ofstream cout("palindrom.out");

          ^
palindrompropozitie.cpp:46:11: error: redefinition of 'char s [250]'
 char s[250], a[250];

           ^
palindrompropozitie.cpp:7:6: error: 'char s [250]' previously declared here
 char s[250], a[250];

      ^
palindrompropozitie.cpp:46:19: error: redefinition of 'char a [250]'
 char s[250], a[250];

                   ^
palindrompropozitie.cpp:7:14: error: 'char a [250]' previously declared here
 char s[250], a[250];

              ^
palindrompropozitie.cpp: In function 'int palindrom(char*)':
palindrompropozitie.cpp:47:5: error: redefinition of 'int palindrom(char*)'
 int palindrom(char s[])

     ^
palindrompropozitie.cpp:8:5: error: 'int palindrom(char*)' previously defined here
 int palindrom(char s[])

     ^
palindrompropozitie.cpp:50:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(i=0; i<strlen(s); i++)

                        ^
palindrompropozitie.cpp: In function 'int main()':
palindrompropozitie.cpp:67:5: error: redefinition of 'int main()'
 int main()

     ^
palindrompropozitie.cpp:28:5: error: 'int main()' previously defined here
 int main()

     ^
palindrompropozitie.cpp: At global scope:
palindrompropozitie.cpp:83:13: error: redefinition of 'std::ifstream cin'
 ifstream cin("palindrom.in");

             ^
palindrompropozitie.cpp:5:10: error: 'std::ifstream cin' previously declared here
 ifstream cin("palindrom.in");

          ^
palindrompropozitie.cpp:84:14: error: redefinition of 'std::ofstream cout'
 ofstream cout("palindrom.out");

              ^
palindrompropozitie.cpp:6:10: error: 'std::ofstream cout' previously declared here
 ofstream cout("palindrom.out");

          ^
palindrompropozitie.cpp:85:11: error: redefinition of 'char s [250]'
 char s[250], a[250];

           ^
palindrompropozitie.cpp:7:6: error: 'char s [250]' previously declared here
 char s[250], a[250];

      ^
palindrompropozitie.cpp:85:19: error: redefinition of 'char a [250]'
 char s[250], a[250];

                   ^
palindrompropozitie.cpp:7:14: error: 'char a [250]' previously declared here
 char s[250], a[250];

              ^
palindrompropozitie.cpp: In function 'int palindrom(char*)':
palindrompropozitie.cpp:86:5: error: redefinition of 'int palindrom(char*)'
 int palindrom(char s[])

     ^
palindrompropozitie.cpp:8:5: error: 'int palindrom(char*)' previously defined here
 int palindrom(char s[])

     ^
palindrompropozitie.cpp:89:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(i=0; i<strlen(s); i++)

                        ^
palindrompropozitie.cpp: In function 'int main()':
palindrompropozitie.cpp:106:5: error: redefinition of 'int main()'
 int main()

     ^
palindrompropozitie.cpp:28:5: error: 'int main()' previously defined here
 int main()

     ^
palindrompropozitie.cpp: At global scope:
palindrompropozitie.cpp:122:13: error: redefinition of 'std::ifstream cin'
 ifstream cin("palindrom.in");

             ^
palindrompropozitie.cpp:5:10: error: 'std::ifstream cin' previously declared here
 ifstream cin("palindrom.in");

          ^
palindrompropozitie.cpp:123:14: error: redefinition of 'std::ofstream cout'
 ofstream cout("palindrom.out");

              ^
palindrompropozitie.cpp:6:10: error: 'std::ofstream cout' previously declared here
 ofstream cout("palindrom.out");

          ^
palindrompropozitie.cpp:124:11: error: redefinition of 'char s [250]'
 char s[250], a[250];

           ^
palindrompropozitie.cpp:7:6: error: 'char s [250]' previously declared here
 char s[250], a[250];

      ^
palindrompropozitie.cpp:124:19: error: redefinition of 'char a [250]'
 char s[250], a[250];

                   ^
palindrompropozitie.cpp:7:14: error: 'char a [250]' previously declared here
 char s[250], a[250];

              ^
palindrompropozitie.cpp: In function 'int palindrom(char*)':
palindrompropozitie.cpp:125:5: error: redefinition of 'int palindrom(char*)'
 int palindrom(char s[])

     ^
palindrompropozitie.cpp:8:5: error: 'int palindrom(char*)' previously defined here
 int palindrom(char s[])

     ^
palindrompropozitie.cpp:128:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(i=0; i<strlen(s); i++)

                        ^
palindrompropozitie.cpp: In function 'int main()':
palindrompropozitie.cpp:145:5: error: redefinition of 'int main()'
 int main()

     ^
palindrompropozitie.cpp:28:5: error: 'int main()' previously defined here
 int main()

     ^
palindrompropozitie.cpp: At global scope:
palindrompropozitie.cpp:161:13: error: redefinition of 'std::ifstream cin'
 ifstream cin("palindrom.in");

             ^
palindrompropozitie.cpp:5:10: error: 'std::ifstream cin' previously declared here
 ifstream cin("palindrom.in");

          ^
palindrompropozitie.cpp:162:14: error: redefinition of 'std::ofstream cout'
 ofstream cout("palindrom.out");

              ^
palindrompropozitie.cpp:6:10: error: 'std::ofstream cout' previously declared here
 ofstream cout("palindrom.out");

          ^
palindrompropozitie.cpp:163:11: error: redefinition of 'char s [250]'
 char s[250], a[250];

           ^
palindrompropozitie.cpp:7:6: error: 'char s [250]' previously declared here
 char s[250], a[250];

      ^
palindrompropozitie.cpp:163:19: error: redefinition of 'char a [250]'
 char s[250], a[250];

                   ^
palindrompropozitie.cpp:7:14: error: 'char a [250]' previously declared here
 char s[250], a[250];

              ^
palindrompropozitie.cpp: In function 'int palindrom(char*)':
palindrompropozitie.cpp:164:5: error: redefinition of 'int palindrom(char*)'
 int palindrom(char s[])

     ^
palindrompropozitie.cpp:8:5: error: 'int palindrom(char*)' previously defined here
 int palindrom(char s[])

     ^
palindrompropozitie.cpp:167:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(i=0; i<strlen(s); i++)

                        ^
palindrompropozitie.cpp: In function 'int main()':
palindrompropozitie.cpp:184:5: error: redefinition of 'int main()'
 int main()

     ^
palindrompropozitie.cpp:28:5: error: 'int main()' previously defined here
 int main()

     ^
palindrompropozitie.cpp: At global scope:
palindrompropozitie.cpp:200:13: error: redefinition of 'std::ifstream cin'
 ifstream cin("palindrom.in");

             ^
palindrompropozitie.cpp:5:10: error: 'std::ifstream cin' previously declared here
 ifstream cin("palindrom.in");

          ^
palindrompropozitie.cpp:201:14: error: redefinition of 'std::ofstream cout'
 ofstream cout("palindrom.out");

              ^
palindrompropozitie.cpp:6:10: error: 'std::ofstream cout' previously declared here
 ofstream cout("palindrom.out");

          ^
palindrompropozitie.cpp:202:11: error: redefinition of 'char s [250]'
 char s[250], a[250];

           ^
palindrompropozitie.cpp:7:6: error: 'char s [250]' previously declared here
 char s[250], a[250];

      ^
palindrompropozitie.cpp:202:19: error: redefinition of 'char a [250]'
 char s[250], a[250];

                   ^
palindrompropozitie.cpp:7:14: error: 'char a [250]' previously declared here
 char s[250], a[250];

              ^
palindrompropozitie.cpp: In function 'int palindrom(char*)':
palindrompropozitie.cpp:203:5: error: redefinition of 'int palindrom(char*)'
 int palindrom(char s[])

     ^
palindrompropozitie.cpp:8:5: error: 'int palindrom(char*)' previously defined here
 int palindrom(char s[])

     ^
palindrompropozitie.cpp:206:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(i=0; i<strlen(s); i++)

                        ^
palindrompropozitie.cpp: In function 'int main()':
palindrompropozitie.cpp:223:5: error: redefinition of 'int main()'
 int main()

     ^
palindrompropozitie.cpp:28:5: error: 'int main()' previously defined here
 int main()

     ^
palindrompropozitie.cpp: At global scope:
palindrompropozitie.cpp:239:13: error: redefinition of 'std::ifstream cin'
 ifstream cin("palindrom.in");

             ^
palindrompropozitie.cpp:5:10: error: 'std::ifstream cin' previously declared here
 ifstream cin("palindrom.in");

          ^
palindrompropozitie.cpp:240:14: error: redefinition of 'std::ofstream cout'
 ofstream cout("palindrom.out");

              ^
palindrompropozitie.cpp:6:10: error: 'std::ofstream cout' previously declared here
 ofstream cout("palindrom.out");

          ^
palindrompropozitie.cpp:241:11: error: redefinition of 'char s [250]'
 char s[250], a[250];

           ^
palindrompropozitie.cpp:7:6: error: 'char s [250]' previously declared here
 char s[250], a[250];

      ^
palindrompropozitie.cpp:241:19: error: redefinition of 'char a [250]'
 char s[250], a[250];

                   ^
palindrompropozitie.cpp:7:14: error: 'char a [250]' previously declared here
 char s[250], a[250];

              ^
palindrompropozitie.cpp: In function 'int palindrom(char*)':
palindrompropozitie.cpp:242:5: error: redefinition of 'int palindrom(char*)'
 int palindrom(char s[])

     ^
palindrompropozitie.cpp:8:5: error: 'int palindrom(char*)' previously defined here
 int palindrom(char s[])

     ^
palindrompropozitie.cpp:245:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(i=0; i<strlen(s); i++)

                        ^
palindrompropozitie.cpp: In function 'int main()':
palindrompropozitie.cpp:262:5: error: redefinition of 'int main()'
 int main()

     ^
palindrompropozitie.cpp:28:5: error: 'int main()' previously defined here
 int main()

     ^
palindrompropozitie.cpp: At global scope:
palindrompropozitie.cpp:278:13: error: redefinition of 'std::ifstream cin'
 ifstream cin("palindrom.in");

             ^
palindrompropozitie.cpp:5:10: error: 'std::ifstream cin' previously declared here
 ifstream cin("palindrom.in");

          ^
palindrompropozitie.cpp:279:14: error: redefinition of 'std::ofstream cout'
 ofstream cout("palindrom.out");

              ^
palindrompropozitie.cpp:6:10: error: 'std::ofstream cout' previously declared here
 ofstream cout("palindrom.out");

          ^
palindrompropozitie.cpp:280:11: error: redefinition of 'char s [250]'
 char s[250], a[250];

           ^
palindrompropozitie.cpp:7:6: error: 'char s [250]' previously declared here
 char s[250], a[250];

      ^
palindrompropozitie.cpp:280:19: error: redefinition of 'char a [250]'
 char s[250], a[250];

                   ^
palindrompropozitie.cpp:7:14: error: 'char a [250]' previously declared here
 char s[250], a[250];

              ^
palindrompropozitie.cpp: In function 'int palindrom(char*)':
palindrompropozitie.cpp:281:5: error: redefinition of 'int palindrom(char*)'
 int palindrom(char s[])

     ^
palindrompropozitie.cpp:8:5: error: 'int palindrom(char*)' previously defined here
 int palindrom(char s[])

     ^
palindrompropozitie.cpp:284:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(i=0; i<strlen(s); i++)

                        ^
palindrompropozitie.cpp: In function 'int main()':
palindrompropozitie.cpp:301:5: error: redefinition of 'int main()'
 int main()

     ^
palindrompropozitie.cpp:28:5: error: 'int main()' previously defined here
 int main()

     ^
palindrompropozitie.cpp: At global scope:
palindrompropozitie.cpp:317:13: error: redefinition of 'std::ifstream cin'
 ifstream cin("palindrom.in");

             ^
palindrompropozitie.cpp:5:10: error: 'std::ifstream cin' previously declared here
 ifstream cin("palindrom.in");

          ^
palindrompropozitie.cpp:318:14: error: redefinition of 'std::ofstream cout'
 ofstream cout("palindrom.out");

              ^
palindrompropozitie.cpp:6:10: error: 'std::ofstream cout' previously declared here
 ofstream cout("palindrom.out");

          ^
palindrompropozitie.cpp:319:11: error: redefinition of 'char s [250]'
 char s[250], a[250];

           ^
palindrompropozitie.cpp:7:6: error: 'char s [250]' previously declared here
 char s[250], a[250];

      ^
palindrompropozitie.cpp:319:19: error: redefinition of 'char a [250]'
 char s[250], a[250];

                   ^
palindrompropozitie.cpp:7:14: error: 'char a [250]' previously declared here
 char s[250], a[250];

              ^
palindrompropozitie.cpp: In function 'int palindrom(char*)':
palindrompropozitie.cpp:320:5: error: redefinition of 'int palindrom(char*)'
 int palindrom(char s[])

     ^
palindrompropozitie.cpp:8:5: error: 'int palindrom(char*)' previously defined here
 int palindrom(char s[])

     ^
palindrompropozitie.cpp:323:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(i=0; i<strlen(s); i++)

                        ^
palindrompropozitie.cpp: In function 'int main()':
palindrompropozitie.cpp:340:5: error: redefinition of 'int main()'
 int main()

     ^
palindrompropozitie.cpp:28:5: error: 'int main()' previously defined here
 int main()

     ^
palindrompropozitie.cpp: At global scope:
palindrompropozitie.cpp:356:13: error: redefinition of 'std::ifstream cin'
 ifstream cin("palindrom.in");

             ^
palindrompropozitie.cpp:5:10: error: 'std::ifstream cin' previously declared here
 ifstream cin("palindrom.in");

          ^
palindrompropozitie.cpp:357:14: error: redefinition of 'std::ofstream cout'
 ofstream cout("palindrom.out");

              ^
palindrompropozitie.cpp:6:10: error: 'std::ofstream cout' previously declared here
 ofstream cout("palindrom.out");

          ^
palindrompropozitie.cpp:358:11: error: redefinition of 'char s [250]'
 char s[250], a[250];

           ^
palindrompropozitie.cpp:7:6: error: 'char s [250]' previously declared here
 char s[250], a[250];

      ^
palindrompropozitie.cpp:358:19: error: redefinition of 'char a [250]'
 char s[250], a[250];

                   ^
palindrompropozitie.cpp:7:14: error: 'char a [250]' previously declared here
 char s[250], a[250];

              ^
palindrompropozitie.cpp: In function 'int palindrom(char*)':
palindrompropozitie.cpp:359:5: error: redefinition of 'int palindrom(char*)'
 int palindrom(char s[])

     ^
palindrompropozitie.cpp:8:5: error: 'int palindrom(char*)' previously defined here
 int palindrom(char s[])

     ^
palindrompropozitie.cpp:362:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(i=0; i<strlen(s); i++)

                        ^
palindrompropozitie.cpp: In function 'int main()':
palindrompropozitie.cpp:379:5: error: redefinition of 'int main()'
 int main()

     ^
palindrompropozitie.cpp:28:5: error: 'int main()' previously defined here
 int main()

     ^
palindrompropozitie.cpp: At global scope:
palindrompropozitie.cpp:395:13: error: redefinition of 'std::ifstream cin'
 ifstream cin("palindrom.in");

             ^
palindrompropozitie.cpp:5:10: error: 'std::ifstream cin' previously declared here
 ifstream cin("palindrom.in");

          ^
palindrompropozitie.cpp:396:14: error: redefinition of 'std::ofstream cout'
 ofstream cout("palindrom.out");

              ^
palindrompropozitie.cpp:6:10: error: 'std::ofstream cout' previously declared here
 ofstream cout("palindrom.out");

          ^
palindrompropozitie.cpp:397:11: error: redefinition of 'char s [250]'
 char s[250], a[250];

           ^
palindrompropozitie.cpp:7:6: error: 'char s [250]' previously declared here
 char s[250], a[250];

      ^
palindrompropozitie.cpp:397:19: error: redefinition of 'char a [250]'
 char s[250], a[250];

                   ^
palindrompropozitie.cpp:7:14: error: 'char a [250]' previously declared here
 char s[250], a[250];

              ^
palindrompropozitie.cpp: In function 'int palindrom(char*)':
palindrompropozitie.cpp:398:5: error: redefinition of 'int palindrom(char*)'
 int palindrom(char s[])

     ^
palindrompropozitie.cpp:8:5: error: 'int palindrom(char*)' previously defined here
 int palindrom(char s[])

     ^
palindrompropozitie.cpp:401:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(i=0; i<strlen(s); i++)

                        ^
palindrompropozitie.cpp: In function 'int main()':
palindrompropozitie.cpp:418:5: error: redefinition of 'int main()'
 int main()

     ^
palindrompropozitie.cpp:28:5: error: 'int main()' previously defined here
 int main()

     ^

Cum funcționează evaluarea?

www.pbinfo.ro permite evaluarea a două tipuri de probleme:

  • probleme la care rezolvarea presupune scrierea unui program complet
  • probleme la care rezolvarea presupune scrierea unei secvențe de program - câteva instrucțiuni, o listă de declarații, una sau mai multe funcții, etc.

Problema PalindromPropozitie face parte din prima categorie. Soluția propusă de tine va fi evaluată astfel:

  • Programul sursă este compilat folosind compilatorul corespunzător. Dacă în urma compilării se obțin erori sau avertismente, acestea sunt afișate în această pagină.
  • Dacă programul a fost compilat, executabilul obținut va fi rulat, furnizându-i-se unul sau mai multe seturi de date de intrare, în concordanță cu restricțiile specifice problemei. Pentru fiecare set de date se obține un anumit punctaj, în raport cu corectitudinea soluției tale.

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ă.