Detalii evaluare #58592871

Rezumat problemă

#4813 cresc

Se dă un șir a1, a2, …, an de numere naturale. Trebuie să răspundeți la două cerințe:
1) Să se verifice dacă șirul este ordonat crescător sau nu.
2) Să se verifice dacă prin eliminarea unui singur element, șirul rămas este ordonat crescător sau nu.

Detalii

Problema cresc Operații I/O cresc.in/cresc.out
Limita timp 0.3 secunde Limita memorie Total: 16 MB / Stivă 8 MB
Id soluție #58592871 Utilizator Dogaru Alessandro (Alessandroinfo9h)
Fișier cresc.cpp Dimensiune 7.40 KB
Data încărcării 26 Iunie 2025, 14:32 Scor / rezultat Eroare de compilare

Evaluare


Mesaj compilare

cresc.cpp:1:1: error: stray '\310' in program
 Treci la conținut

 ^
cresc.cpp:1:1: error: stray '\233' in program
cresc.cpp:2:1: error: stray '\310' in program
 Istoricul discuțiilor

 ^
cresc.cpp:2:1: error: stray '\233' in program
cresc.cpp:5:1: error: stray '\304' in program
 Să se verifice dacă prin eliminarea unui singur element, șirul rămas este ordonat crescător sau nu.

 ^
cresc.cpp:5:1: error: stray '\203' in program
cresc.cpp:5:1: error: stray '\304' in program
cresc.cpp:5:1: error: stray '\203' in program
cresc.cpp:5:1: error: stray '\310' in program
cresc.cpp:5:1: error: stray '\231' in program
cresc.cpp:5:1: error: stray '\304' in program
cresc.cpp:5:1: error: stray '\203' in program
cresc.cpp:5:1: error: stray '\304' in program
cresc.cpp:5:1: error: stray '\203' in program
cresc.cpp:7:1: error: stray '\304' in program
 Pentru a verifica dacă un șir de numere devine ordonat crescător prin eliminarea unui singur element, putem folosi o abordare eficientă în timp linear 

 ^
cresc.cpp:7:1: error: stray '\203' in program
cresc.cpp:7:1: error: stray '\310' in program
cresc.cpp:7:1: error: stray '\231' in program
cresc.cpp:7:1: error: stray '\304' in program
cresc.cpp:7:1: error: stray '\203' in program
cresc.cpp:7:1: error: stray '\304' in program
cresc.cpp:7:1: error: stray '\203' in program
cresc.cpp:7:1: error: stray '\303' in program
cresc.cpp:7:1: error: stray '\256' in program
cresc.cpp:15:1: error: stray '\310' in program
 Parcurgem șirul și identificăm pozițiile unde regula de ordine crescătoare este încălcată, adică unde a[i] > a[i+1]. Dacă avem mai mult de o astfel de încălcare, nu se poate repara șirul prin eliminarea unui singur element.

 ^
cresc.cpp:15:1: error: stray '\231' in program
cresc.cpp:15:1: error: stray '\310' in program
cresc.cpp:15:1: error: stray '\231' in program
cresc.cpp:15:1: error: stray '\304' in program
cresc.cpp:15:1: error: stray '\203' in program
cresc.cpp:15:1: error: stray '\310' in program
cresc.cpp:15:1: error: stray '\233' in program
cresc.cpp:15:1: error: stray '\304' in program
cresc.cpp:15:1: error: stray '\203' in program
cresc.cpp:15:1: error: stray '\303' in program
cresc.cpp:15:1: error: stray '\256' in program
cresc.cpp:15:1: error: stray '\304' in program
cresc.cpp:15:1: error: stray '\203' in program
cresc.cpp:15:1: error: stray '\304' in program
cresc.cpp:15:1: error: stray '\203' in program
cresc.cpp:15:1: error: stray '\304' in program
cresc.cpp:15:1: error: stray '\203' in program
cresc.cpp:15:1: error: stray '\304' in program
cresc.cpp:15:1: error: stray '\203' in program
cresc.cpp:15:1: error: stray '\303' in program
cresc.cpp:15:1: error: stray '\256' in program
cresc.cpp:15:1: error: stray '\304' in program
cresc.cpp:15:1: error: stray '\203' in program
cresc.cpp:15:1: error: stray '\310' in program
cresc.cpp:15:1: error: stray '\231' in program
cresc.cpp:17:1: error: stray '\304' in program
 Dacă avem o singură astfel de încălcare, verificăm dacă eliminarea lui a[i] sau a[i+1] ar face șirul strict crescător.

 ^
cresc.cpp:17:1: error: stray '\203' in program
cresc.cpp:17:1: error: stray '\304' in program
cresc.cpp:17:1: error: stray '\203' in program
cresc.cpp:17:1: error: stray '\303' in program
cresc.cpp:17:1: error: stray '\256' in program
cresc.cpp:17:1: error: stray '\304' in program
cresc.cpp:17:1: error: stray '\203' in program
cresc.cpp:17:1: error: stray '\304' in program
cresc.cpp:17:1: error: stray '\203' in program
cresc.cpp:17:1: error: stray '\304' in program
cresc.cpp:17:1: error: stray '\203' in program
cresc.cpp:17:1: error: stray '\310' in program
cresc.cpp:17:1: error: stray '\231' in program
cresc.cpp:17:1: error: stray '\304' in program
cresc.cpp:17:1: error: stray '\203' in program
cresc.cpp:19:1: error: stray '\303' in program
 Implementare în C++:

 ^
cresc.cpp:19:1: error: stray '\256' in program
cresc.cpp:71:1: error: stray '\' in program
 Input: 5\n1 3 2 4 5

 ^
cresc.cpp:73:1: error: stray '\310' in program
 Explicație: Eliminăm 3 sau 2.

 ^
cresc.cpp:73:1: error: stray '\233' in program
cresc.cpp:73:1: error: stray '\304' in program
cresc.cpp:73:1: error: stray '\203' in program
cresc.cpp:75:1: error: stray '\' in program
 Input: 5\n1 3 2 1 5

 ^
cresc.cpp:77:1: error: stray '\310' in program
 Explicație: Mai multe încălcări – nu se poate corecta cu o singură eliminare.

 ^
cresc.cpp:77:1: error: stray '\233' in program
cresc.cpp:77:1: error: stray '\303' in program
cresc.cpp:77:1: error: stray '\256' in program
cresc.cpp:77:1: error: stray '\304' in program
cresc.cpp:77:1: error: stray '\203' in program
cresc.cpp:77:1: error: stray '\304' in program
cresc.cpp:77:1: error: stray '\203' in program
cresc.cpp:77:1: error: stray '\342' in program
cresc.cpp:77:1: error: stray '\200' in program
cresc.cpp:77:1: error: stray '\223' in program
cresc.cpp:77:1: error: stray '\304' in program
cresc.cpp:77:1: error: stray '\203' in program
cresc.cpp:79:1: error: stray '\304' in program
 Dacă vrei implementarea în alt limbaj (Python, Java etc.) sau într-un format pentru pbinfo, spune-mi!

 ^
cresc.cpp:79:1: error: stray '\203' in program
cresc.cpp:79:1: error: stray '\303' in program
cresc.cpp:79:1: error: stray '\256' in program
cresc.cpp:79:1: error: stray '\303' in program
cresc.cpp:79:1: error: stray '\256' in program
cresc.cpp:111:1: error: stray '\304' in program
 Codul tău funcționează parțial corect pentru ce ți-ai propus, dar nu verifică complet dacă șirul poate deveni crescător prin eliminarea unui singur element atunci când t == 2.

 ^
cresc.cpp:111:1: error: stray '\203' in program
cresc.cpp:111:1: error: stray '\310' in program
cresc.cpp:111:1: error: stray '\233' in program
cresc.cpp:111:1: error: stray '\304' in program
cresc.cpp:111:1: error: stray '\203' in program
cresc.cpp:111:1: error: stray '\310' in program
cresc.cpp:111:1: error: stray '\233' in program
cresc.cpp:111:1: error: stray '\310' in program
cresc.cpp:111:1: error: stray '\233' in program
cresc.cpp:111:1: error: stray '\304' in program
cresc.cpp:111:1: error: stray '\203' in program
cresc.cpp:111:1: error: stray '\304' in program
cresc.cpp:111:1: error: stray '\203' in program
cresc.cpp:111:1: error: stray '\310' in program
cresc.cpp:111:1: error: stray '\231' in program
cresc.cpp:111:1: error: stray '\304' in program
cresc.cpp:111:1: error: stray '\203' in program
cresc.cpp:111:1: error: stray '\303' in program
cresc.cpp:111:1: error: stray '\242' in program
cresc.cpp:113:1: error: stray '\342' in program
 ✅ Ce face corect:

 ^
cresc.cpp:113:1: error: stray '\234' in program
cresc.cpp:113:1: error: stray '\205' in program
cresc.cpp:114:1: error: stray '\310' in program
 Citește datele din fișier (cresc.in).

 ^
cresc.cpp:114:1: error: stray '\231' in program
cresc.cpp:114:1: error: stray '\310' in program
cresc.cpp:114:1: error: stray '\231' in program
cresc.cpp:116:1: error: stray '\304' in program
 Verifică dacă șirul este strict crescător (t == 1).

 ^
cresc.cpp:116:1: error: stray '\203' in program
cresc.cpp:116:1: error: stray '\304' in program
cresc.cpp:116:1: error: stray '\203' in program
cresc.cpp:116:1: error: stray '\310' in program
cresc.cpp:116:1: error: stray '\231' in program
cresc.cpp:116:1: error: stray '\304' in program
cresc.cpp:116:1: error: stray '\203' in program
cresc.cpp:118:1: error: stray '\304' in program
 Numără câte perechi v[i-1] > v[i] există.

 ^
cresc.cpp:118:1: error: stray '\203' in program
cresc.cpp:118:1: error: stray '\304' in program
cresc.cpp:118:1: error: stray '\203' in program
cresc.cpp:118:1: error: stray '\303' in program
cresc.cpp:118:1: error: stray '\242' in program
cresc.cpp:118:1: error: stray '\304' in program
cresc.cpp:118:1: error: stray '\203' in program
cresc.cpp:120:1: error: stray '\342' in program
 ❌ Ce nu face corect pentru t == 2:

 ^
cresc.cpp:120:1: error: stray '\235' in program
cresc.cpp:120:1: error: stray '\214' in program
cresc.cpp:121:1: error: stray '\304' in program
 Verificarea doar a numărului de „încălcări” (cnt) nu este suficientă. Poate fi o singură încălcare, dar șirul să nu poată fi corectat prin eliminarea unui singur element. Exemplu:

 ^
cresc.cpp:121:1: error: stray '\203' in program
cresc.cpp:121:1: error: stray '\342' in program
cresc.cpp:121:1: error: stray '\200' in program
cresc.cpp:121:1: error: stray '\236' in program
cresc.cpp:121:1: error: stray '\303' in program
cresc.cpp:121:1: error: stray '\256' in program
cresc.cpp:121:1: error: stray '\304' in program
cresc.cpp:121:1: error: stray '\203' in program
cresc.cpp:121:1: error: stray '\304' in program
cresc.cpp:121:1: error: stray '\203' in program
cresc.cpp:121:1: error: stray '\342' in program
cresc.cpp:121:1: error: stray '\200' in program
cresc.cpp:121:1: error: stray '\235' in program
cresc.cpp:121:1: error: stray '\304' in program
cresc.cpp:121:1: error: stray '\203' in program
cresc.cpp:121:1: error: stray '\304' in program
cresc.cpp:121:1: error: stray '\203' in program
cresc.cpp:121:1: error: stray '\303' in program
cresc.cpp:121:1: error: stray '\256' in program
cresc.cpp:121:1: error: stray '\304' in program
cresc.cpp:121:1: error: stray '\203' in program
cresc.cpp:121:1: error: stray '\310' in program
cresc.cpp:121:1: error: stray '\231' in program
cresc.cpp:121:1: error: stray '\304' in program
cresc.cpp:121:1: error: stray '\203' in program
cresc.cpp:121:1: error: stray '\304' in program
cresc.cpp:121:1: error: stray '\203' in program
cresc.cpp:130:1: error: stray '\304' in program
 Dar dacă ai:

 ^
cresc.cpp:130:1: error: stray '\203' in program
cresc.cpp:135:1: error: stray '\304' in program
 Aici cnt = 1, dar doar eliminarea lui 3 sau 2 trebuie testată explicit.

 ^
cresc.cpp:135:1: error: stray '\203' in program
cresc.cpp:137:1: error: stray '\342' in program
 ✅ Soluție corectă completată:

 ^
cresc.cpp:137:1: error: stray '\234' in program
cresc.cpp:137:1: error: stray '\205' in program
cresc.cpp:137:1: error: stray '\310' in program
cresc.cpp:137:1: error: stray '\233' in program
cresc.cpp:137:1: error: stray '\304' in program
cresc.cpp:137:1: error: stray '\203' in program
cresc.cpp:137:1: error: stray '\304' in program
cresc.cpp:137:1: error: stray '\203' in program
cresc.cpp:194:1: error: stray '\360' in program
 📂 Fișiere:

 ^
cresc.cpp:194:1: error: stray '\237' in program
cresc.cpp:194:1: error: stray '\223' in program
cresc.cpp:194:1: error: stray '\202' in program
cresc.cpp:194:1: error: stray '\310' in program
cresc.cpp:194:1: error: stray '\231' in program
cresc.cpp:202:1: error: stray '\304' in program
 Dacă vrei să optimizez și pentru timp/memorie sau să comentez codul linie cu linie, spune-mi!

 ^
cresc.cpp:202:1: error: stray '\203' in program
cresc.cpp:202:1: error: stray '\304' in program
cresc.cpp:202:1: error: stray '\203' in program
cresc.cpp:202:1: error: stray '\310' in program
cresc.cpp:202:1: error: stray '\231' in program
cresc.cpp:202:1: error: stray '\304' in program
cresc.cpp:202:1: error: stray '\203' in program
cresc.cpp:205:1: error: stray '\304' in program
 e dă un șir a1, a2, …, an de numere naturale.

 ^
cresc.cpp:205:1: error: stray '\203' in program
cresc.cpp:205:1: error: stray '\310' in program
cresc.cpp:205:1: error: stray '\231' in program
cresc.cpp:205:1: error: stray '\342' in program
cresc.cpp:205:1: error: stray '\200' in program
cresc.cpp:205:1: error: stray '\246' in program
cresc.cpp:207:1: error: stray '\310' in program
 Cerința

 ^
cresc.cpp:207:1: error: stray '\233' in program
cresc.cpp:208:1: error: stray '\304' in program
 Trebuie să răspundeți la două cerințe:

 ^
cresc.cpp:208:1: error: stray '\203' in program
cresc.cpp:208:1: error: stray '\304' in program
cresc.cpp:208:1: error: stray '\203' in program
cresc.cpp:208:1: error: stray '\310' in program
cresc.cpp:208:1: error: stray '\233' in program
cresc.cpp:208:1: error: stray '\304' in program
cresc.cpp:208:1: error: stray '\203' in program
cresc.cpp:208:1: error: stray '\310' in program
cresc.cpp:208:1: error: stray '\233' in program
cresc.cpp:209:1: error: stray '\304' in program
 1) Să se verifice dacă șirul este ordonat crescător sau nu.

 ^
cresc.cpp:209:1: error: stray '\203' in program
cresc.cpp:209:1: error: stray '\304' in program
cresc.cpp:209:1: error: stray '\203' in program
cresc.cpp:209:1: error: stray '\310' in program
cresc.cpp:209:1: error: stray '\231' in program
cresc.cpp:209:1: error: stray '\304' in program
cresc.cpp:209:1: error: stray '\203' in program
cresc.cpp:210:1: error: stray '\304' in program
 2) Să se verifice dacă prin eliminarea unui singur element, șirul rămas este ordonat crescător sau nu.

 ^
cresc.cpp:210:1: error: stray '\203' in program
cresc.cpp:210:1: error: stray '\304' in program
cresc.cpp:210:1: error: stray '\203' in program
cresc.cpp:210:1: error: stray '\310' in program
cresc.cpp:210:1: error: stray '\231' in program
cresc.cpp:210:1: error: stray '\304' in program
cresc.cpp:210:1: error: stray '\203' in program
cresc.cpp:210:1: error: stray '\304' in program
cresc.cpp:210:1: error: stray '\203' in program
cresc.cpp:212:1: error: stray '\304' in program
 Perfect! Ai două cerințe legate de un șir de numere naturale:

 ^
cresc.cpp:212:1: error: stray '\203' in program
cresc.cpp:212:1: error: stray '\310' in program
cresc.cpp:212:1: error: stray '\233' in program
cresc.cpp:212:1: error: stray '\310' in program
cresc.cpp:212:1: error: stray '\231' in program
cresc.cpp:214:1: error: stray '\360' in program
 📌 Cerințele:

 ^
cresc.cpp:214:1: error: stray '\237' in program
cresc.cpp:214:1: error: stray '\223' in program
cresc.cpp:214:1: error: stray '\214' in program
cresc.cpp:214:1: error: stray '\310' in program
cresc.cpp:214:1: error: stray '\233' in program
cresc.cpp:215:1: error: stray '\304' in program
 Verifică dacă șirul este ordonat crescător strict (a1 < a2 < ... < an).

 ^
cresc.cpp:215:1: error: stray '\203' in program
cresc.cpp:215:1: error: stray '\304' in program
cresc.cpp:215:1: error: stray '\203' in program
cresc.cpp:215:1: error: stray '\310' in program
cresc.cpp:215:1: error: stray '\231' in program
cresc.cpp:215:1: error: stray '\304' in program
cresc.cpp:215:1: error: stray '\203' in program
cresc.cpp:217:1: error: stray '\304' in program
 Verifică dacă se poate obține un șir crescător strict prin eliminarea unui singur element.

 ^
cresc.cpp:217:1: error: stray '\203' in program
cresc.cpp:217:1: error: stray '\304' in program
cresc.cpp:217:1: error: stray '\203' in program
cresc.cpp:217:1: error: stray '\310' in program
cresc.cpp:217:1: error: stray '\233' in program
cresc.cpp:217:1: error: stray '\310' in program
cresc.cpp:217:1: error: stray '\231' in program
cresc.cpp:217:1: error: stray '\304' in program
cresc.cpp:217:1: error: stray '\203' in program
cresc.cpp:219:1: error: stray '\342' in program
 ✅ Soluție completă în C++ (cu fișiere de intrare/ieșire):

 ^
cresc.cpp:219:1: error: stray '\234' in program
cresc.cpp:219:1: error: stray '\205' in program
cresc.cpp:219:1: error: stray '\310' in program
cresc.cpp:219:1: error: stray '\233' in program
cresc.cpp:219:1: error: stray '\304' in program
cresc.cpp:219:1: error: stray '\203' in program
cresc.cpp:219:1: error: stray '\303' in program
cresc.cpp:219:1: error: stray '\256' in program
cresc.cpp:219:1: error: stray '\310' in program
cresc.cpp:219:1: error: stray '\231' in program
cresc.cpp:219:1: error: stray '\310' in program
cresc.cpp:219:1: error: stray '\231' in program
cresc.cpp:280:1: error: stray '\360' in program
 📂 Exemplu de input (cresc.in):

 ^
cresc.cpp:280:1: error: stray '\237' in program
cresc.cpp:280:1: error: stray '\223' in program
cresc.cpp:280:1: error: stray '\202' in program
cresc.cpp:283:1: error: stray '\360' in program
 📄 Output (cresc.out):

 ^
cresc.cpp:283:1: error: stray '\237' in program
cresc.cpp:283:1: error: stray '\223' in program
cresc.cpp:283:1: error: stray '\204' in program
cresc.cpp:286:1: error: stray '\360' in program
 🧠 Explicație:

 ^
cresc.cpp:286:1: error: stray '\237' in program
cresc.cpp:286:1: error: stray '\247' in program
cresc.cpp:286:1: error: stray '\240' in program
cresc.cpp:286:1: error: stray '\310' in program
cresc.cpp:286:1: error: stray '\233' in program
cresc.cpp:287:1: error: stray '\304' in program
 1 3 2 4 5 nu este crescător strict (3 > 2).

 ^
cresc.cpp:287:1: error: stray '\203' in program
cresc.cpp:289:1: error: stray '\304' in program
 Dacă eliminăm 3, obținem 1 2 4 5, care este crescător strict ⇒ răspunsul este DA.

 ^
cresc.cpp:289:1: error: stray '\203' in program
cresc.cpp:289:1: error: stray '\304' in program
cresc.cpp:289:1: error: stray '\203' in program
cresc.cpp:289:1: error: stray '\310' in program
cresc.cpp:289:1: error: stray '\233' in program
cresc.cpp:289:1: error: stray '\304' in program
cresc.cpp:289:1: error: stray '\203' in program
cresc.cpp:289:1: error: stray '\342' in program
cresc.cpp:289:1: error: stray '\207' in program
cresc.cpp:289:1: error: stray '\222' in program
cresc.cpp:289:1: error: stray '\304' in program
cresc.cpp:289:1: error: stray '\203' in program
cresc.cpp:291:1: error: stray '\310' in program
 Vrei și o versiune cu citire de la tastatură (fără fișiere)? Sau implementarea în alt limbaj (Python)?

 ^
cresc.cpp:291:1: error: stray '\231' in program
cresc.cpp:291:1: error: stray '\304' in program
cresc.cpp:291:1: error: stray '\203' in program
cresc.cpp:291:1: error: stray '\304' in program
cresc.cpp:291:1: error: stray '\203' in program
cresc.cpp:291:1: error: stray '\304' in program
cresc.cpp:291:1: error: stray '\203' in program
cresc.cpp:291:1: error: stray '\310' in program
cresc.cpp:291:1: error: stray '\231' in program
cresc.cpp:291:1: error: stray '\303' in program
cresc.cpp:291:1: error: stray '\256' in program
cresc.cpp:293:1: error: stray '\303' in program
 Îți place această personalitate?

 ^
cresc.cpp:293:1: error: stray '\216' in program
cresc.cpp:293:1: error: stray '\310' in program
cresc.cpp:293:1: error: stray '\233' in program
cresc.cpp:293:1: error: stray '\304' in program
cresc.cpp:293:1: error: stray '\203' in program
cresc.cpp:300:1: error: stray '\310' in program
 Nu ai ales niciun fișierNu ai ales niciun fișier

 ^
cresc.cpp:300:1: error: stray '\231' in program
cresc.cpp:300:1: error: stray '\310' in program
cresc.cpp:300:1: error: stray '\231' in program
cresc.cpp:301:1: error: stray '\310' in program
 ChatGPT poate face greșeli. Verifică informațiile importante. Consultă Preferințele privind modulele cookie.

 ^
cresc.cpp:301:1: error: stray '\231' in program
cresc.cpp:301:1: error: stray '\304' in program
cresc.cpp:301:1: error: stray '\203' in program
cresc.cpp:301:1: error: stray '\310' in program
cresc.cpp:301:1: error: stray '\233' in program
cresc.cpp:301:1: error: stray '\304' in program
cresc.cpp:301:1: error: stray '\203' in program
cresc.cpp:301:1: error: stray '\310' in program
cresc.cpp:301:1: error: stray '\233' in program
cresc.cpp:1:1: error: 'Treci' does not name a type
 Treci la conținut

 ^
In file included from /usr/include/c++/4.8/iosfwd:40:0,
                 from /usr/include/c++/4.8/ios:38,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from cresc.cpp:20:
/usr/include/c++/4.8/bits/postypes.h:98:11: error: 'ptrdiff_t' does not name a type
   typedef ptrdiff_t streamsize; // Signed integral type
           ^
In file included from /usr/include/c++/4.8/exception:152:0,
                 from /usr/include/c++/4.8/ios:39,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from cresc.cpp:20:
/usr/include/c++/4.8/bits/exception_ptr.h:95:30: error: field 'nullptr_t' has incomplete type
       exception_ptr(nullptr_t) noexcept
                              ^
/usr/include/c++/4.8/bits/exception_ptr.h:95:30: error: expected ';' at end of member declaration
/usr/include/c++/4.8/bits/exception_ptr.h:95:32: error: expected unqualified-id before 'noexcept'
       exception_ptr(nullptr_t) noexcept
                                ^
In file included from /usr/include/c++/4.8/bits/move.h:57:0,
                 from /usr/include/c++/4.8/bits/stl_pair.h:59,
                 from /usr/include/c++/4.8/bits/stl_algobase.h:64,
                 from /usr/include/c++/4.8/bits/char_traits.h:39,
                 from /usr/include/c++/4.8/ios:40,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from cresc.cpp:20:
/usr/include/c++/4.8/type_traits:285:31: error: 'std::size_t' has not been declared
   template<typename _Tp, std::size_t _Size>
                               ^
/usr/include/c++/4.8/type_traits:419:34: error: 'nullptr_t' is not a member of 'std'
     struct __is_nullptr_t_helper<std::nullptr_t>
                                  ^
/usr/include/c++/4.8/type_traits:419:34: error: 'nullptr_t' is not a member of 'std'
/usr/include/c++/4.8/type_traits:419:48: error: template argument 1 is invalid
     struct __is_nullptr_t_helper<std::nullptr_t>
                                                ^
/usr/include/c++/4.8/type_traits:1239:32: error: 'size_t' is not a member of 'std'
     : public integral_constant<std::size_t, __alignof__(_Tp)> { };
                                ^
/usr/include/c++/4.8/type_traits:1239:32: note: suggested alternative:
In file included from /usr/include/wchar.h:51:0,
                 from /usr/include/c++/4.8/cwchar:44,
                 from /usr/include/c++/4.8/bits/postypes.h:40,
                 from /usr/include/c++/4.8/iosfwd:40,
                 from /usr/include/c++/4.8/ios:38,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from cresc.cpp:20:
/usr/lib/gcc/i686-linux-gnu/4.8/include/stddef.h:212:23: note:   'size_t'
 typedef __SIZE_TYPE__ size_t;
                       ^
In file included from /usr/include/c++/4.8/bits/move.h:57:0,
                 from /usr/include/c++/4.8/bits/stl_pair.h:59,
                 from /usr/include/c++/4.8/bits/stl_algobase.h:64,
                 from /usr/include/c++/4.8/bits/char_traits.h:39,
                 from /usr/include/c++/4.8/ios:40,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from cresc.cpp:20:
/usr/include/c++/4.8/type_traits:1239:32: error: 'size_t' is not a member of 'std'
     : public integral_constant<std::size_t, __alignof__(_Tp)> { };
                                ^
/usr/include/c++/4.8/type_traits:1239:32: note: suggested alternative:
In file included from /usr/include/wchar.h:51:0,
                 from /usr/include/c++/4.8/cwchar:44,
                 from /usr/include/c++/4.8/bits/postypes.h:40,
                 from /usr/include/c++/4.8/iosfwd:40,
                 from /usr/include/c++/4.8/ios:38,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from cresc.cpp:20:
/usr/lib/gcc/i686-linux-gnu/4.8/include/stddef.h:212:23: note:   'size_t'
 typedef __SIZE_TYPE__ size_t;
                       ^
In file included from /usr/include/c++/4.8/bits/move.h:57:0,
                 from /usr/include/c++/4.8/bits/stl_pair.h:59,
                 from /usr/include/c++/4.8/bits/stl_algobase.h:64,
                 from /usr/include/c++/4.8/bits/char_traits.h:39,
                 from /usr/include/c++/4.8/ios:40,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from cresc.cpp:20:
/usr/include/c++/4.8/type_traits:1239:61: error: template argument 1 is invalid
     : public integral_constant<std::size_t, __alignof__(_Tp)> { };
                                                             ^
/usr/include/c++/4.8/type_traits:1239:61: note: invalid template non-type parameter
/usr/include/c++/4.8/type_traits:1244:32: error: 'size_t' is not a member of 'std'
     : public integral_constant<std::size_t, 0> { };
                                ^
/usr/include/c++/4.8/type_traits:1244:32: note: suggested alternative:
In file included from /usr/include/wchar.h:51:0,
                 from /usr/include/c++/4.8/cwchar:44,
                 from /usr/include/c++/4.8/bits/postypes.h:40,
                 from /usr/include/c++/4.8/iosfwd:40,
                 from /usr/include/c++/4.8/ios:38,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from cresc.cpp:20:
/usr/lib/gcc/i686-linux-gnu/4.8/include/stddef.h:212:23: note:   'size_t'
 typedef __SIZE_TYPE__ size_t;
                       ^
In file included from /usr/include/c++/4.8/bits/move.h:57:0,
                 from /usr/include/c++/4.8/bits/stl_pair.h:59,
                 from /usr/include/c++/4.8/bits/stl_algobase.h:64,
                 from /usr/include/c++/4.8/bits/char_traits.h:39,
                 from /usr/include/c++/4.8/ios:40,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from cresc.cpp:20:
/usr/include/c++/4.8/type_traits:1244:32: error: 'size_t' is not a member of 'std'
     : public integral_constant<std::size_t, 0> { };
                                ^
/usr/include/c++/4.8/type_traits:1244:32: note: suggested alternative:
In file included from /usr/include/wchar.h:51:0,
                 from /usr/include/c++/4.8/cwchar:44,
                 from /usr/include/c++/4.8/bits/postypes.h:40,
                 from /usr/include/c++/4.8/iosfwd:40,
                 from /usr/include/c++/4.8/ios:38,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from cresc.cpp:20:
/usr/lib/gcc/i686-linux-gnu/4.8/include/stddef.h:212:23: note:   'size_t'
 typedef __SIZE_TYPE__ size_t;
                       ^
In file included from /usr/include/c++/4.8/bits/move.h:57:0,
                 from /usr/include/c++/4.8/bits/stl_pair.h:59,
                 from /usr/include/c++/4.8/bits/stl_algobase.h:64,
                 from /usr/include/c++/4.8/bits/char_traits.h:39,
                 from /usr/include/c++/4.8/ios:40,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from cresc.cpp:20:
/usr/include/c++/4.8/type_traits:1244:46: error: template argument 1 is invalid
     : public integral_constant<std::size_t, 0> { };
                                              ^
/usr/include/c++/4.8/type_traits:1244:46: note: invalid template non-type parameter
/usr/include/c++/4.8/type_traits:1246:31: error: 'std::size_t' has not been declared
   template<typename _Tp, std::size_t _Size>
                               ^
/usr/include/c++/4.8/type_traits:1248:32: error: 'size_t' is not a member of 'std'
     : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
                                ^
/usr/include/c++/4.8/type_traits:1248:32: note: suggested alternative:
In file included from /usr/include/wchar.h:51:0,
                 from /usr/include/c++/4.8/cwchar:44,
                 from /usr/include/c++/4.8/bits/postypes.h:40,
                 from /usr/include/c++/4.8/iosfwd:40,
                 from /usr/include/c++/4.8/ios:38,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from cresc.cpp:20:
/usr/lib/gcc/i686-linux-gnu/4.8/include/stddef.h:212:23: note:   'size_t'
 typedef __SIZE_TYPE__ size_t;
                       ^
In file included from /usr/include/c++/4.8/bits/move.h:57:0,
                 from /usr/include/c++/4.8/bits/stl_pair.h:59,
                 from /usr/include/c++/4.8/bits/stl_algobase.h:64,
                 from /usr/include/c++/4.8/bits/char_traits.h:39,
                 from /usr/include/c++/4.8/ios:40,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from cresc.cpp:20:
/usr/include/c++/4.8/type_traits:1248:32: error: 'size_t' is not a member of 'std'
     : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
                                ^
/usr/include/c++/4.8/type_traits:1248:32: note: suggested alternative:
In file included from /usr/include/wchar.h:51:0,
                 from /usr/include/c++/4.8/cwchar:44,
                 from /usr/include/c++/4.8/bits/postypes.h:40,
                 from /usr/include/c++/4.8/iosfwd:40,
                 from /usr/include/c++/4.8/ios:38,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from cresc.cpp:20:
/usr/lib/gcc/i686-linux-gnu/4.8/include/stddef.h:212:23: note:   'size_t'
 typedef __SIZE_TYPE__ size_t;
                       ^
In file included from /usr/include/c++/4.8/bits/move.h:57:0,
                 from /usr/include/c++/4.8/bits/stl_pair.h:59,
                 from /usr/include/c++/4.8/bits/stl_algobase.h:64,
                 from /usr/include/c++/4.8/bits/char_traits.h:39,
                 from /usr/include/c++/4.8/ios:40,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from cresc.cpp:20:
/usr/include/c++/4.8/type_traits:1248:65: error: template argument 1 is invalid
     : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
                                                                 ^
/usr/include/c++/4.8/type_traits:1248:65: note: invalid template non-type parameter
/usr/include/c++/4.8/type_traits:1252:32: error: 'size_t' is not a member of 'std'
     : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
                                ^
/usr/include/c++/4.8/type_traits:1252:32: note: suggested alternative:
In file included from /usr/include/wchar.h:51:0,
                 from /usr/include/c++/4.8/cwchar:44,
                 from /usr/include/c++/4.8/bits/postypes.h:40,
                 from /usr/include/c++/4.8/iosfwd:40,
                 from /usr/include/c++/4.8/ios:38,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from cresc.cpp:20:
/usr/lib/gcc/i686-linux-gnu/4.8/include/stddef.h:212:23: note:   'size_t'
 typedef __SIZE_TYPE__ size_t;
                       ^
In file included from /usr/include/c++/4.8/bits/move.h:57:0,
                 from /usr/include/c++/4.8/bits/stl_pair.h:59,
                 from /usr/include/c++/4.8/bits/stl_algobase.h:64,
                 from /usr/include/c++/4.8/bits/char_traits.h:39,
                 from /usr/include/c++/4.8/ios:40,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from cresc.cpp:20:
/usr/include/c++/4.8/type_traits:1252:32: error: 'size_t' is not a member of 'std'
     : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
                                ^
/usr/include/c++/4.8/type_traits:1252:32: note: suggested alternative:
In file included from /usr/include/wchar.h:51:0,
                 from /usr/include/c++/4.8/cwchar:44,
                 from /usr/include/c++/4.8/bits/postypes.h:40,
                 from /usr/include/c++/4.8/iosfwd:40,
                 from /usr/include/c++/4.8/ios:38,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from cresc.cpp:20:
/usr/lib/gcc/i686-linux-gnu/4.8/include/stddef.h:212:23: note:   'size_t'
 typedef __SIZE_TYPE__ size_t;
                       ^
In file included from /usr/include/c++/4.8/bits/move.h:57:0,
                 from /usr/include/c++/4.8/bits/stl_pair.h:59,
                 from /usr/include/c++/4.8/bits/stl_algobase.h:64,
                 from /usr/include/c++/4.8/bits/char_traits.h:39,
                 from /usr/include/c++/4.8/ios:40,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from cresc.cpp:20:
/usr/include/c++/4.8/type_traits:1252:65: error: template argument 1 is invalid
     : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
                                                                 ^
/usr/include/c++/4.8/type_traits:1252:65: note: invalid template non-type parameter
/usr/include/c++/4.8/type_traits:1257:32: error: 'size_t' is not a member of 'std'
     : public integral_constant<std::size_t, 0> { };
                                ^
/usr/include/c++/4.8/type_traits:1257:32: note: suggested alternative:
In file included from /usr/include/wchar.h:51:0,
                 from /usr/include/c++/4.8/cwchar:44,
                 from /usr/include/c++/4.8/bits/postypes.h:40,
                 from /usr/include/c++/4.8/iosfwd:40,
                 from /usr/include/c++/4.8/ios:38,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from cresc.cpp:20:
/usr/lib/gcc/i686-linux-gnu/4.8/include/stddef.h:212:23: note:   'size_t'
 typedef __SIZE_TYPE__ size_t;
                       ^
In file included from /usr/include/c++/4.8/bits/move.h:57:0,
                 from /usr/include/c++/4.8/bits/stl_pair.h:59,
                 from /usr/include/c++/4.8/bits/stl_algobase.h:64,
                 from /usr/include/c++/4.8/bits/char_traits.h:39,
                 from /usr/include/c++/4.8/ios:40,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from cresc.cpp:20:
/usr/include/c++/4.8/type_traits:1257:32: error: 'size_t' is not a member of 'std'
     : public integral_constant<std::size_t, 0> { };
                                ^
/usr/include/c++/4.8/type_traits:1257:32: note: suggested alternative:
In file included from /usr/include/wchar.h:51:0,
                 from /usr/include/c++/4.8/cwchar:44,
                 from /usr/include/c++/4.8/bits/postypes.h:40,
                 from /usr/include/c++/4.8/iosfwd:40,
                 from /usr/include/c++/4.8/ios:38,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from cresc.cpp:20:
/usr/lib/gcc/i686-linux-gnu/4.8/include/stddef.h:212:23: note:   'size_t'
 typedef __SIZE_TYPE__ size_t;
                       ^
In file included from /usr/include/c++/4.8/bits/move.h:57:0,
                 from /usr/include/c++/4.8/bits/stl_pair.h:59,
                 from /usr/include/c++/4.8/bits/stl_algobase.h:64,
                 from /usr/include/c++/4.8/bits/char_traits.h:39,
                 from /usr/include/c++/4.8/ios:40,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from cresc.cpp:20:
/usr/include/c++/4.8/type_traits:1257:46: error: template argument 1 is invalid
     : public integral_constant<std::size_t, 0> { };
                                              ^
/usr/include/c++/4.8/type_traits:1257:46: note: invalid template non-type parameter
/usr/include/c++/4.8/type_traits:1259:47: error: 'std::size_t' has not been declared
   template<typename _Tp, unsigned _Uint, std::size_t _Size>
                                               ^
/usr/include/c++/4.8/type_traits:1261:32: error: 'size_t' is not a member of 'std'
     : public integral_constant<std::size_t,
                                ^
/usr/include/c++/4.8/type_traits:1261:32: note: suggested alternative:
In file included from /usr/include/wchar.h:51:0,
                 from /usr/include/c++/4.8/cwchar:44,
                 from /usr/include/c++/4.8/bits/postypes.h:40,
                 from /usr/include/c++/4.8/iosfwd:40,
                 from /usr/include/c++/4.8/ios:38,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from cresc.cpp:20:
/usr/lib/gcc/i686-linux-gnu/4.8/include/stddef.h:212:23: note:   'size_t'
 typedef __SIZE_TYPE__ size_t;
                       ^
In file included from /usr/include/c++/4.8/bits/move.h:57:0,
                 from /usr/include/c++/4.8/bits/stl_pair.h:59,
                 from /usr/include/c++/4.8/bits/stl_algobase.h:64,
                 from /usr/include/c++/4.8/bits/char_traits.h:39,
                 from /usr/include/c++/4.8/ios:40,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from cresc.cpp:20:
/usr/include/c++/4.8/type_traits:1261:32: error: 'size_t' is not a member of 'std'
     : public integral_constant<std::size_t,
                                ^
/usr/include/c++/4.8/type_traits:1261:32: note: suggested alternative:
In file included from /usr/include/wchar.h:51:0,
                 from /usr/include/c++/4.8/cwchar:44,
                 from /usr/include/c++/4.8/bits/postypes.h:40,
                 from /usr/include/c++/4.8/iosfwd:40,
                 from /usr/include/c++/4.8/ios:38,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from cresc.cpp:20:
/usr/lib/gcc/i686-linux-gnu/4.8/include/stddef.h:212:23: note:   'size_t'
 typedef __SIZE_TYPE__ size_t;
                       ^
In file included from /usr/include/c++/4.8/bits/move.h:57:0,
                 from /usr/include/c++/4.8/bits/stl_pair.h:59,
                 from /usr/include/c++/4.8/bits/stl_algobase.h:64,
                 from /usr/include/c++/4.8/bits/char_traits.h:39,
                 from /usr/include/c++/4.8/ios:40,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from cresc.cpp:20:
/usr/include/c++/4.8/type_traits:1263:28: error: template argument 1 is invalid
           _Uint - 1>::value>
                            ^
/usr/include/c++/4.8/type_traits:1263:28: note: invalid template non-type parameter
/usr/include/c++/4.8/type_traits:1268:32: error: 'size_t' is not a member of 'std'
     : public integral_constant<std::size_t,
                                ^
/usr/include/c++/4.8/type_traits:1268:32: note: suggested alternative:
In file included from /usr/include/wchar.h:51:0,
                 from /usr/include/c++/4.8/cwchar:44,
                 from /usr/include/c++/4.8/bits/postypes.h:40,
                 from /usr/include/c++/4.8/iosfwd:40,
                 from /usr/include/c++/4.8/ios:38,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from cresc.cpp:20:
/usr/lib/gcc/i686-linux-gnu/4.8/include/stddef.h:212:23: note:   'size_t'
 typedef __SIZE_TYPE__ size_t;
                       ^
In file included from /usr/include/c++/4.8/bits/move.h:57:0,
                 from /usr/include/c++/4.8/bits/stl_pair.h:59,
                 from /usr/include/c++/4.8/bits/stl_algobase.h:64,
                 from /usr/include/c++/4.8/bits/char_traits.h:39,
                 from /usr/include/c++/4.8/ios:40,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from cresc.cpp:20:
/usr/include/c++/4.8/type_traits:1268:32: error: 'size_t' is not a member of 'std'
     : public integral_constant<std::size_t,
                                ^
/usr/include/c++/4.8/type_traits:1268:32: note: suggested alternative:
In file included from /usr/include/wchar.h:51:0,
                 from /usr/include/c++/4.8/cwchar:44,
                 from /usr/include/c++/4.8/bits/postypes.h:40,
                 from /usr/include/c++/4.8/iosfwd:40,
                 from /usr/include/c++/4.8/ios:38,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from cresc.cpp:20:
/usr/lib/gcc/i686-linux-gnu/4.8/include/stddef.h:212:23: note:   'size_t'
 typedef __SIZE_TYPE__ size_t;
                       ^
In file included from /usr/include/c++/4.8/bits/move.h:57:0,
                 from /usr/include/c++/4.8/bits/stl_pair.h:59,
                 from /usr/include/c++/4.8/bits/stl_algobase.h:64,
                 from /usr/include/c++/4.8/bits/char_traits.h:39,
                 from /usr/include/c++/4.8/ios:40,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from cresc.cpp:20:
/usr/include/c++/4.8/type_traits:1270:31: error: template argument 1 is invalid
              _Uint - 1>::value>
                               ^
/usr/include/c++/4.8/type_traits:1270:31: note: invalid template non-type parameter
/usr/include/c++/4.8/type_traits:1627:31: error: 'std::size_t' has not been declared
   template<typename _Tp, std::size_t _Size>
                               ^
/usr/include/c++/4.8/type_traits:1640:31: error: 'std::size_t' has not been declared
   template<typename _Tp, std::size_t _Size>
                               ^
/usr/include/c++/4.8/type_traits:1671:17: error: 'std::size_t' has not been declared
   template<std::size_t _Len>
                 ^
/usr/include/c++/4.8/type_traits:1691:17: error: 'std::size_t' has not been declared
   template<std::size_t _Len, std::size_t _Align =
                 ^
/usr/include/c++/4.8/type_traits:1691:35: error: 'std::size_t' has not been declared
   template<std::size_t _Len, std::size_t _Align =
                                   ^
In file included from /usr/include/c++/4.8/bits/stl_algobase.h:64:0,
                 from /usr/include/c++/4.8/bits/char_traits.h:39,
                 from /usr/include/c++/4.8/ios:40,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from cresc.cpp:20:
/usr/include/c++/4.8/bits/stl_pair.h:85:17: error: 'std::size_t' has not been declared
   template<std::size_t...>
                 ^
/usr/include/c++/4.8/bits/stl_pair.h:204:41: error: 'std::size_t' has not been declared
       template<typename... _Args1, std::size_t... _Indexes1,
                                         ^
/usr/include/c++/4.8/bits/stl_pair.h:205:41: error: 'std::size_t' has not been declared
                typename... _Args2, std::size_t... _Indexes2>
                                         ^
In file included from /usr/include/c++/4.8/bits/stl_algobase.h:65:0,
                 from /usr/include/c++/4.8/bits/char_traits.h:39,
                 from /usr/include/c++/4.8/ios:40,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from cresc.cpp:20:
/usr/include/c++/4.8/bits/stl_iterator_base_types.h:116:67: error: expected type-specifier before 'ptrdiff_t'
   template<typename _Category, typename _Tp, typename _Distance = ptrdiff_t,
                                                                   ^
/usr/include/c++/4.8/bits/stl_iterator_base_types.h:116:67: error: expected '>' before 'ptrdiff_t'
/usr/include/c++/4.8/bits/stl_iterator_base_types.h:127:15: error: '_Pointer' does not name a type
       typedef _Pointer   pointer;
               ^
/usr/include/c++/4.8/bits/stl_iterator_base_types.h:129:15: error: '_Reference' does not name a type
       typedef _Reference reference;
               ^
/usr/include/c++/4.8/bits/stl_iterator_base_types.h:179:15: error: 'ptrdiff_t' does not name a type
       typedef ptrdiff_t                   difference_type;
               ^
/usr/include/c++/4.8/bits/stl_iterator_base_types.h:190:15: error: 'ptrdiff_t' does not name a type
       typedef ptrdiff_t                   difference_type;
               ^
In file included from /usr/include/c++/4.8/bits/stl_algobase.h:67:0,
                 from /usr/include/c++/4.8/bits/char_traits.h:39,
                 from /usr/include/c++/4.8/ios:40,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from cresc.cpp:20:
/usr/include/c++/4.8/bits/stl_iterator.h:101:69: error: wrong number of template arguments (5, should be 3)
                       typename iterator_traits<_Iterator>::reference>
                                                                     ^
In file included from /usr/include/c++/4.8/bits/stl_algobase.h:65:0,
                 from /usr/include/c++/4.8/bits/char_traits.h:39,
                 from /usr/include/c++/4.8/ios:40,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from cresc.cpp:20:
/usr/include/c++/4.8/bits/stl_iterator_base_types.h:118:12: error: provided for 'template<class _Category, class _Tp, class _Distance> struct std::iterator'
     struct iterator
            ^
In file included from /usr/include/c++/4.8/bits/stl_algobase.h:67:0,
                 from /usr/include/c++/4.8/bits/char_traits.h:39,
                 from /usr/include/c++/4.8/ios:40,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from cresc.cpp:20:
/usr/include/c++/4.8/bits/stl_iterator.h:403:66: error: wrong number of template arguments (5, should be 3)
     : public iterator<output_iterator_tag, void, void, void, void>
                                                                  ^
In file included from /usr/include/c++/4.8/bits/stl_algobase.h:65:0,
                 from /usr/include/c++/4.8/bits/char_traits.h:39,
                 from /usr/include/c++/4.8/ios:40,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from cresc.cpp:20:
/usr/include/c++/4.8/bits/stl_iterator_base_types.h:118:12: error: provided for 'template<class _Category, class _Tp, class _Distance> struct std::iterator'
     struct iterator
            ^
In file included from /usr/include/c++/4.8/bits/stl_algobase.h:67:0,
                 from /usr/include/c++/4.8/bits/char_traits.h:39,
                 from /usr/include/c++/4.8/ios:40,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from cresc.cpp:20:
/usr/include/c++/4.8/bits/stl_iterator.h:494:66: error: wrong number of template arguments (5, should be 3)
     : public iterator<output_iterator_tag, void, void, void, void>
                                                                  ^
In file included from /usr/include/c++/4.8/bits/stl_algobase.h:65:0,
                 from /usr/include/c++/4.8/bits/char_traits.h:39,
                 from /usr/include/c++/4.8/ios:40,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from cresc.cpp:20:
/usr/include/c++/4.8/bits/stl_iterator_base_types.h:118:12: error: provided for 'template<class _Category, class _Tp, class _Distance> struct std::iterator'
     struct iterator
            ^
In file included from /usr/include/c++/4.8/bits/stl_algobase.h:67:0,
                 from /usr/include/c++/4.8/bits/char_traits.h:39,
                 from /usr/include/c++/4.8/ios:40,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from cresc.cpp:20:
/usr/include/c++/4.8/bits/stl_iterator.h:588:66: error: wrong number of template arguments (5, should be 3)
     : public iterator<output_iterator_tag, void, void, void, void>
                                                                  ^
In file included from /usr/include/c++/4.8/bits/stl_algobase.h:65:0,
                 from /usr/include/c++/4.8/bits/char_traits.h:39,
                 from /usr/include/c++/4.8/ios:40,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from cresc.cpp:20:
/usr/include/c++/4.8/bits/stl_iterator_base_types.h:118:12: error: provided for 'template<class _Category, class _Tp, class _Distance> struct std::iterator'
     struct iterator
            ^
In file included from /usr/include/c++/4.8/bits/char_traits.h:39:0,
                 from /usr/include/c++/4.8/ios:40,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from cresc.cpp:20:
/usr/include/c++/4.8/bits/stl_algobase.h: In static member function 'static _Tp* std::__copy_move<_IsMove, true, std::random_access_iterator_tag>::__copy_m(const _Tp*, const _Tp*, _Tp*)':
/usr/include/c++/4.8/bits/stl_algobase.h:370:10: error: 'ptrdiff_t' does not name a type
    const ptrdiff_t _Num = __last - __first;
          ^
/usr/include/c++/4.8/bits/stl_algobase.h:371:8: error: '_Num' was not declared in this scope
    if (_Num)
        ^
/usr/include/c++/4.8/bits/stl_algobase.h:373:22: error: '_Num' was not declared in this scope
    return __result + _Num;
                      ^
/usr/include/c++/4.8/bits/stl_algobase.h: In static member function 'static _Tp* std::__copy_move_backward<_IsMove, true, std::random_access_iterator_tag>::__copy_move_b(const _Tp*, const _Tp*, _Tp*)':
/usr/include/c++/4.8/bits/stl_algobase.h:565:10: error: 'ptrdiff_t' does not name a type
    const ptrdiff_t _Num = __last - __first;
          ^
/usr/include/c++/4.8/bits/stl_algobase.h:566:8: error: '_Num' was not declared in this scope
    if (_Num)
        ^
/usr/include/c++/4.8/bits/stl_algobase.h:568:22: error: '_Num' was not declared in this scope
    return __result - _Num;
                      ^
In file included from /usr/include/c++/4.8/ios:40:0,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from cresc.cpp:20:
/usr/include/c++/4.8/bits/char_traits.h: At global scope:
/usr/include/c++/4.8/bits/char_traits.h:104:66: error: 'std::size_t' has not been declared
       compare(const char_type* __s1, const char_type* __s2, std::size_t __n);
                                                                  ^
/usr/include/c++/4.8/bits/char_traits.h:106:14: error: 'size_t' in namespace 'std' does not name a type
       static std::size_t
              ^
/usr/include/c++/4.8/bits/char_traits.h:110:39: error: 'std::size_t' has not been declared
       find(const char_type* __s, std::size_t __n, const char_type& __a);
                                       ^
/usr/include/c++/4.8/bits/char_traits.h:113:57: error: 'std::size_t' has not been declared
       move(char_type* __s1, const char_type* __s2, std::size_t __n);
                                                         ^
/usr/include/c++/4.8/bits/char_traits.h:116:57: error: 'std::size_t' has not been declared
       copy(char_type* __s1, const char_type* __s2, std::size_t __n);
                                                         ^
/usr/include/c++/4.8/bits/char_traits.h:119:35: error: 'std::size_t' has not been declared
       assign(char_type* __s, std::size_t __n, char_type __a);
                                   ^
/usr/include/c++/4.8/bits/char_traits.h:145:64: error: 'std::size_t' has not been declared
     compare(const char_type* __s1, const char_type* __s2, std::size_t __n)
                                                                ^
/usr/include/c++/4.8/bits/char_traits.h: In static member function 'static int __gnu_cxx::char_traits<_CharT>::compare(const char_type*, const char_type*, int)':
/usr/include/c++/4.8/bits/char_traits.h:147:12: error: 'size_t' is not a member of 'std'
       for (std::size_t __i = 0; __i < __n; ++__i)
            ^
/usr/include/c++/4.8/bits/char_traits.h:147:12: note: suggested alternative:
In file included from /usr/include/wchar.h:51:0,
                 from /usr/include/c++/4.8/cwchar:44,
                 from /usr/include/c++/4.8/bits/postypes.h:40,
                 from /usr/include/c++/4.8/iosfwd:40,
                 from /usr/include/c++/4.8/ios:38,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from cresc.cpp:20:
/usr/lib/gcc/i686-linux-gnu/4.8/include/stddef.h:212:23: note:   'size_t'
 typedef __SIZE_TYPE__ size_t;
                       ^
In file included from /usr/include/c++/4.8/ios:40:0,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from cresc.cpp:20:
/usr/include/c++/4.8/bits/char_traits.h:147:24: error: expected ';' before '__i'
       for (std::size_t __i = 0; __i < __n; ++__i)
                        ^
/usr/include/c++/4.8/bits/char_traits.h:147:33: error: '__i' was not declared in this scope
       for (std::size_t __i = 0; __i < __n; ++__i)
                                 ^
/usr/include/c++/4.8/bits/char_traits.h: At global scope:
/usr/include/c++/4.8/bits/char_traits.h:156:5: error: 'size_t' in namespace 'std' does not name a type
     std::size_t
     ^
/usr/include/c++/4.8/bits/char_traits.h:169:37: error: 'std::size_t' has not been declared
     find(const char_type* __s, std::size_t __n, const char_type& __a)
                                     ^
/usr/include/c++/4.8/bits/char_traits.h: In static member function 'static const char_type* __gnu_cxx::char_traits<_CharT>::find(const char_type*, int, const char_type&)':
/usr/include/c++/4.8/bits/char_traits.h:171:12: error: 'size_t' is not a member of 'std'
       for (std::size_t __i = 0; __i < __n; ++__i)
            ^
/usr/include/c++/4.8/bits/char_traits.h:171:12: note: suggested alternative:
In file included from /usr/include/wchar.h:51:0,
                 from /usr/include/c++/4.8/cwchar:44,
                 from /usr/include/c++/4.8/bits/postypes.h:40,
                 from /usr/include/c++/4.8/iosfwd:40,
                 from /usr/include/c++/4.8/ios:38,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from cresc.cpp:20:
/usr/lib/gcc/i686-linux-gnu/4.8/include/stddef.h:212:23: note:   'size_t'
 typedef __SIZE_TYPE__ size_t;
                       ^
In file included from /usr/include/c++/4.8/ios:40:0,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from cresc.cpp:20:
/usr/include/c++/4.8/bits/char_traits.h:171:24: error: expected ';' before '__i'
       for (std::size_t __i = 0; __i < __n; ++__i)
                        ^
/usr/include/c++/4.8/bits/char_traits.h:171:33: error: '__i' was not declared in this scope
       for (std::size_t __i = 0; __i < __n; ++__i)
                                 ^
/usr/include/c++/4.8/bits/char_traits.h: At global scope:
/usr/include/c++/4.8/bits/char_traits.h:180:55: error: 'std::size_t' has not been declared
     move(char_type* __s1, const char_type* __s2, std::size_t __n)
                                                       ^
/usr/include/c++/4.8/bits/char_traits.h:189:55: error: 'std::size_t' has not been declared
     copy(char_type* __s1, const char_type* __s2, std::size_t __n)
                                                       ^
/usr/include/c++/4.8/bits/char_traits.h:199:33: error: 'std::size_t' has not been declared
     assign(char_type* __s, std::size_t __n, char_type __a)
                                 ^
In file included from /usr/include/c++/4.8/ext/new_allocator.h:33:0,
                 from /usr/include/i386-linux-gnu/c++/4.8/bits/c++allocator.h:33,
                 from /usr/include/c++/4.8/bits/allocator.h:46,
                 from /usr/include/c++/4.8/string:41,
                 from /usr/include/c++/4.8/bits/locale_classes.h:40,
                 from /usr/include/c++/4.8/bits/ios_base.h:41,
                 from /usr/include/c++/4.8/ios:42,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from cresc.cpp:20:
/usr/include/c++/4.8/new:91:31: error: declaration of 'operator new' as non-function
 void* operator new(std::size_t) _GLIBCXX_THROW (std::bad_alloc)
                               ^
/usr/include/c++/4.8/new:91:20: error: 'size_t' is not a member of 'std'
 void* operator new(std::size_t) _GLIBCXX_THROW (std::bad_alloc)
                    ^
/usr/include/c++/4.8/new:91:20: note: suggested alternative:
In file included from /usr/include/wchar.h:51:0,
                 from /usr/include/c++/4.8/cwchar:44,
                 from /usr/include/c++/4.8/bits/postypes.h:40,
                 from /usr/include/c++/4.8/iosfwd:40,
                 from /usr/include/c++/4.8/ios:38,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from cresc.cpp:20:
/usr/lib/gcc/i686-linux-gnu/4.8/include/stddef.h:212:23: note:   'size_t'
 typedef __SIZE_TYPE__ size_t;
                       ^
In file included from /usr/include/c++/4.8/ext/new_allocator.h:33:0,
                 from /usr/include/i386-linux-gnu/c++/4.8/bits/c++allocator.h:33,
                 from /usr/include/c++/4.8/bits/allocator.h:46,
                 from /usr/include/c++/4.8/string:41,
                 from /usr/include/c++/4.8/bits/locale_classes.h:40,
                 from /usr/include/c++/4.8/bits/ios_base.h:41,
                 from /usr/include/c++/4.8/ios:42,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from cresc.cpp:20:
/usr/include/c++/4.8/new:93:33: error: declaration of 'operator new []' as non-function
 void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
                                 ^
/usr/include/c++/4.8/new:93:22: error: 'size_t' is not a member of 'std'
 void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
                      ^
/usr/include/c++/4.8/new:93:22: note: suggested alternative:
In file included from /usr/include/wchar.h:51:0,
                 from /usr/include/c++/4.8/cwchar:44,
                 from /usr/include/c++/4.8/bits/postypes.h:40,
                 from /usr/include/c++/4.8/iosfwd:40,
                 from /usr/include/c++/4.8/ios:38,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from cresc.cpp:20:
/usr/lib/gcc/i686-linux-gnu/4.8/include/stddef.h:212:23: note:   'size_t'
 typedef __SIZE_TYPE__ size_t;
                       ^
In file included from /usr/include/c++/4.8/ext/new_allocator.h:33:0,
                 from /usr/include/i386-linux-gnu/c++/4.8/bits/c++allocator.h:33,
                 from /usr/include/c++/4.8/bits/allocator.h:46,
                 from /usr/include/c++/4.8/string:41,
                 from /usr/include/c++/4.8/bits/locale_classes.h:40,
                 from /usr/include/c++/4.8/bits/ios_base.h:41,
                 from /usr/include/c++/4.8/ios:42,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from cresc.cpp:20:
/usr/include/c++/4.8/new:99:25: error: declaration of 'operator new' as non-function
 void* operator new(std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
                         ^
/usr/include/c++/4.8/new:99:20: error: 'size_t' is not a member of 'std'
 void* operator new(std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
                    ^
/usr/include/c++/4.8/new:99:20: note: suggested alternative:
In file included from /usr/include/wchar.h:51:0,
                 from /usr/include/c++/4.8/cwchar:44,
                 from /usr/include/c++/4.8/bits/postypes.h:40,
                 from /usr/include/c++/4.8/iosfwd:40,
                 from /usr/include/c++/4.8/ios:38,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from cresc.cpp:20:
/usr/lib/gcc/i686-linux-gnu/4.8/include/stddef.h:212:23: note:   'size_t'
 typedef __SIZE_TYPE__ size_t;
                       ^
In file included from /usr/include/c++/4.8/ext/new_allocator.h:33:0,
                 from /usr/include/i386-linux-gnu/c++/4.8/bits/c++allocator.h:33,
                 from /usr/include/c++/4.8/bits/allocator.h:46,
                 from /usr/include/c++/4.8/string:41,
                 from /usr/include/c++/4.8/bits/locale_classes.h:40,
                 from /usr/include/c++/4.8/bits/ios_base.h:41,
                 from /usr/include/c++/4.8/ios:42,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from cresc.cpp:20:
/usr/include/c++/4.8/new:99:33: error: expected primary-expression before 'const'
 void* operator new(std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
                                 ^
/usr/include/c++/4.8/new:101:27: error: declaration of 'operator new []' as non-function
 void* operator new[](std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
                           ^
/usr/include/c++/4.8/new:101:22: error: 'size_t' is not a member of 'std'
 void* operator new[](std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
                      ^
/usr/include/c++/4.8/new:101:22: note: suggested alternative:
In file included from /usr/include/wchar.h:51:0,
                 from /usr/include/c++/4.8/cwchar:44,
                 from /usr/include/c++/4.8/bits/postypes.h:40,
                 from /usr/include/c++/4.8/iosfwd:40,
                 from /usr/include/c++/4.8/ios:38,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from cresc.cpp:20:
/usr/lib/gcc/i686-linux-gnu/4.8/include/stddef.h:212:23: note:   'size_t'
 typedef __SIZE_TYPE__ size_t;
                       ^
In file included from /usr/include/c++/4.8/ext/new_allocator.h:33:0,
                 from /usr/include/i386-linux-gnu/c++/4.8/bits/c++allocator.h:33,
                 from /usr/include/c++/4.8/bits/allocator.h:46,
                 from /usr/include/c++/4.8/string:41,
                 from /usr/include/c++/4.8/bits/locale_classes.h:40,
                 from /usr/include/c++/4.8/bits/ios_base.h:41,
                 from /usr/include/c++/4.8/ios:42,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from cresc.cpp:20:
/usr/include/c++/4.8/new:101:35: error: expected primary-expression before 'const'
 void* operator new[](std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
                                   ^
/usr/include/c++/4.8/new:109:32: error: declaration of 'operator new' as non-function
 inline void* operator new(std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT
                                ^
/usr/include/c++/4.8/new:109:27: error: 'size_t' is not a member of 'std'
 inline void* operator new(std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT
                           ^
/usr/include/c++/4.8/new:109:27: note: suggested alternative:
In file included from /usr/include/wchar.h:51:0,
                 from /usr/include/c++/4.8/cwchar:44,
                 from /usr/include/c++/4.8/bits/postypes.h:40,
                 from /usr/include/c++/4.8/iosfwd:40,
                 from /usr/include/c++/4.8/ios:38,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from cresc.cpp:20:
/usr/lib/gcc/i686-linux-gnu/4.8/include/stddef.h:212:23: note:   'size_t'
 typedef __SIZE_TYPE__ size_t;
                       ^
In file included from /usr/include/c++/4.8/ext/new_allocator.h:33:0,
                 from /usr/include/i386-linux-gnu/c++/4.8/bits/c++allocator.h:33,
                 from /usr/include/c++/4.8/bits/allocator.h:46,
                 from /usr/include/c++/4.8/string:41,
                 from /usr/include/c++/4.8/bits/locale_classes.h:40,
                 from /usr/include/c++/4.8/bits/ios_base.h:41,
                 from /usr/include/c++/4.8/ios:42,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from cresc.cpp:20:
/usr/include/c++/4.8/new:109:40: error: expected primary-expression before 'void'
 inline void* operator new(std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT
                                        ^
/usr/include/c++/4.8/new:111:34: error: declaration of 'operator new []' as non-function
 inline void* operator new[](std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT
                                  ^
/usr/include/c++/4.8/new:111:29: error: 'size_t' is not a member of 'std'
 inline void* operator new[](std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT
                             ^
/usr/include/c++/4.8/new:111:29: note: suggested alternative:
In file included from /

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