Detalii evaluare #22680118

Rezumat problemă

Se dă un număr natural n. Determinaţi, în ordine lexicografică, toate modalităţile de a-l scrie pe n ca sumă de numere naturale.

Detalii

Problema PartitiiNumar Operații I/O partitiinumar.in/partitiinumar.out
Limita timp 0.5 secunde Limita memorie Total: 64 MB / Stivă 8 MB
Id soluție #22680118 Utilizator Grigoras Alicia (aliciagrigoras)
Fișier partitiinumar.cpp Dimensiune 907 B
Data încărcării 29 Aprilie 2020, 18:24 Scor / rezultat Eroare de compilare

Evaluare


Mesaj compilare

partitiinumar.cpp:1:9: error: #include expects "FILENAME" or <FILENAME>
 #include <cstdio>

         ^
partitiinumar.cpp:2:9: error: #include expects "FILENAME" or <FILENAME>
 #include <algorithm>

         ^
partitiinumar.cpp:4:1: error: stray '\302' in program
 using namespace std;

 ^
partitiinumar.cpp:4:1: error: stray '\240' in program
partitiinumar.cpp:4:1: error: stray '\302' in program
partitiinumar.cpp:4:1: error: stray '\240' in program
partitiinumar.cpp:5:1: error: stray '\302' in program
 int n, x[50], s;

 ^
partitiinumar.cpp:5:1: error: stray '\240' in program
partitiinumar.cpp:5:1: error: stray '\302' in program
partitiinumar.cpp:5:1: error: stray '\240' in program
partitiinumar.cpp:5:1: error: stray '\302' in program
partitiinumar.cpp:5:1: error: stray '\240' in program
partitiinumar.cpp:6:1: error: stray '\302' in program
 int afisare(int k)

 ^
partitiinumar.cpp:6:1: error: stray '\240' in program
partitiinumar.cpp:6:1: error: stray '\302' in program
partitiinumar.cpp:6:1: error: stray '\240' in program
partitiinumar.cpp:8:1: error: stray '\302' in program
     for(int i = 1; i <= k; i ++)

 ^
partitiinumar.cpp:8:1: error: stray '\240' in program
partitiinumar.cpp:8:1: error: stray '\302' in program
partitiinumar.cpp:8:1: error: stray '\240' in program
partitiinumar.cpp:8:1: error: stray '\302' in program
partitiinumar.cpp:8:1: error: stray '\240' in program
partitiinumar.cpp:8:1: error: stray '\302' in program
partitiinumar.cpp:8:1: error: stray '\240' in program
partitiinumar.cpp:8:1: error: stray '\302' in program
partitiinumar.cpp:8:1: error: stray '\240' in program
partitiinumar.cpp:8:1: error: stray '\302' in program
partitiinumar.cpp:8:1: error: stray '\240' in program
partitiinumar.cpp:8:1: error: stray '\302' in program
partitiinumar.cpp:8:1: error: stray '\240' in program
partitiinumar.cpp:8:1: error: stray '\302' in program
partitiinumar.cpp:8:1: error: stray '\240' in program
partitiinumar.cpp:8:1: error: stray '\302' in program
partitiinumar.cpp:8:1: error: stray '\240' in program
partitiinumar.cpp:8:1: error: stray '\302' in program
partitiinumar.cpp:8:1: error: stray '\240' in program
partitiinumar.cpp:8:1: error: stray '\302' in program
partitiinumar.cpp:8:1: error: stray '\240' in program
partitiinumar.cpp:8:1: error: stray '\302' in program
partitiinumar.cpp:8:1: error: stray '\240' in program
partitiinumar.cpp:9:1: error: stray '\302' in program
         printf("%d ", x[i]);

 ^
partitiinumar.cpp:9:1: error: stray '\240' in program
partitiinumar.cpp:9:1: error: stray '\302' in program
partitiinumar.cpp:9:1: error: stray '\240' in program
partitiinumar.cpp:9:1: error: stray '\302' in program
partitiinumar.cpp:9:1: error: stray '\240' in program
partitiinumar.cpp:9:1: error: stray '\302' in program
partitiinumar.cpp:9:1: error: stray '\240' in program
partitiinumar.cpp:9:1: error: stray '\302' in program
partitiinumar.cpp:9:1: error: stray '\240' in program
partitiinumar.cpp:9:1: error: stray '\302' in program
partitiinumar.cpp:9:1: error: stray '\240' in program
partitiinumar.cpp:9:1: error: stray '\302' in program
partitiinumar.cpp:9:1: error: stray '\240' in program
partitiinumar.cpp:9:1: error: stray '\302' in program
partitiinumar.cpp:9:1: error: stray '\240' in program
partitiinumar.cpp:9:1: error: stray '\302' in program
partitiinumar.cpp:9:1: error: stray '\240' in program
partitiinumar.cpp:10:1: error: stray '\302' in program
     printf("\n");

 ^
partitiinumar.cpp:10:1: error: stray '\240' in program
partitiinumar.cpp:10:1: error: stray '\302' in program
partitiinumar.cpp:10:1: error: stray '\240' in program
partitiinumar.cpp:10:1: error: stray '\302' in program
partitiinumar.cpp:10:1: error: stray '\240' in program
partitiinumar.cpp:10:1: error: stray '\302' in program
partitiinumar.cpp:10:1: error: stray '\240' in program
partitiinumar.cpp:12:1: error: stray '\302' in program
 bool cont(int k)

 ^
partitiinumar.cpp:12:1: error: stray '\240' in program
partitiinumar.cpp:12:1: error: stray '\302' in program
partitiinumar.cpp:12:1: error: stray '\240' in program
partitiinumar.cpp:14:1: error: stray '\302' in program
     s = 0;

 ^
partitiinumar.cpp:14:1: error: stray '\240' in program
partitiinumar.cpp:14:1: error: stray '\302' in program
partitiinumar.cpp:14:1: error: stray '\240' in program
partitiinumar.cpp:14:1: error: stray '\302' in program
partitiinumar.cpp:14:1: error: stray '\240' in program
partitiinumar.cpp:14:1: error: stray '\302' in program
partitiinumar.cpp:14:1: error: stray '\240' in program
partitiinumar.cpp:14:1: error: stray '\302' in program
partitiinumar.cpp:14:1: error: stray '\240' in program
partitiinumar.cpp:14:1: error: stray '\302' in program
partitiinumar.cpp:14:1: error: stray '\240' in program
partitiinumar.cpp:15:1: error: stray '\302' in program
     if(x[k] < x[k - 1]) return 0;

 ^
partitiinumar.cpp:15:1: error: stray '\240' in program
partitiinumar.cpp:15:1: error: stray '\302' in program
partitiinumar.cpp:15:1: error: stray '\240' in program
partitiinumar.cpp:15:1: error: stray '\302' in program
partitiinumar.cpp:15:1: error: stray '\240' in program
partitiinumar.cpp:15:1: error: stray '\302' in program
partitiinumar.cpp:15:1: error: stray '\240' in program
partitiinumar.cpp:15:1: error: stray '\302' in program
partitiinumar.cpp:15:1: error: stray '\240' in program
partitiinumar.cpp:15:1: error: stray '\302' in program
partitiinumar.cpp:15:1: error: stray '\240' in program
partitiinumar.cpp:15:1: error: stray '\302' in program
partitiinumar.cpp:15:1: error: stray '\240' in program
partitiinumar.cpp:15:1: error: stray '\302' in program
partitiinumar.cpp:15:1: error: stray '\240' in program
partitiinumar.cpp:15:1: error: stray '\302' in program
partitiinumar.cpp:15:1: error: stray '\240' in program
partitiinumar.cpp:15:1: error: stray '\302' in program
partitiinumar.cpp:15:1: error: stray '\240' in program
partitiinumar.cpp:16:1: error: stray '\302' in program
     for(int i = 1; i <= k; i ++)

 ^
partitiinumar.cpp:16:1: error: stray '\240' in program
partitiinumar.cpp:16:1: error: stray '\302' in program
partitiinumar.cpp:16:1: error: stray '\240' in program
partitiinumar.cpp:16:1: error: stray '\302' in program
partitiinumar.cpp:16:1: error: stray '\240' in program
partitiinumar.cpp:16:1: error: stray '\302' in program
partitiinumar.cpp:16:1: error: stray '\240' in program
partitiinumar.cpp:16:1: error: stray '\302' in program
partitiinumar.cpp:16:1: error: stray '\240' in program
partitiinumar.cpp:16:1: error: stray '\302' in program
partitiinumar.cpp:16:1: error: stray '\240' in program
partitiinumar.cpp:16:1: error: stray '\302' in program
partitiinumar.cpp:16:1: error: stray '\240' in program
partitiinumar.cpp:16:1: error: stray '\302' in program
partitiinumar.cpp:16:1: error: stray '\240' in program
partitiinumar.cpp:16:1: error: stray '\302' in program
partitiinumar.cpp:16:1: error: stray '\240' in program
partitiinumar.cpp:16:1: error: stray '\302' in program
partitiinumar.cpp:16:1: error: stray '\240' in program
partitiinumar.cpp:16:1: error: stray '\302' in program
partitiinumar.cpp:16:1: error: stray '\240' in program
partitiinumar.cpp:16:1: error: stray '\302' in program
partitiinumar.cpp:16:1: error: stray '\240' in program
partitiinumar.cpp:17:1: error: stray '\302' in program
         s = s + x[i];

 ^
partitiinumar.cpp:17:1: error: stray '\240' in program
partitiinumar.cpp:17:1: error: stray '\302' in program
partitiinumar.cpp:17:1: error: stray '\240' in program
partitiinumar.cpp:17:1: error: stray '\302' in program
partitiinumar.cpp:17:1: error: stray '\240' in program
partitiinumar.cpp:17:1: error: stray '\302' in program
partitiinumar.cpp:17:1: error: stray '\240' in program
partitiinumar.cpp:17:1: error: stray '\302' in program
partitiinumar.cpp:17:1: error: stray '\240' in program
partitiinumar.cpp:17:1: error: stray '\302' in program
partitiinumar.cpp:17:1: error: stray '\240' in program
partitiinumar.cpp:17:1: error: stray '\302' in program
partitiinumar.cpp:17:1: error: stray '\240' in program
partitiinumar.cpp:17:1: error: stray '\302' in program
partitiinumar.cpp:17:1: error: stray '\240' in program
partitiinumar.cpp:17:1: error: stray '\302' in program
partitiinumar.cpp:17:1: error: stray '\240' in program
partitiinumar.cpp:17:1: error: stray '\302' in program
partitiinumar.cpp:17:1: error: stray '\240' in program
partitiinumar.cpp:17:1: error: stray '\302' in program
partitiinumar.cpp:17:1: error: stray '\240' in program
partitiinumar.cpp:17:1: error: stray '\302' in program
partitiinumar.cpp:17:1: error: stray '\240' in program
partitiinumar.cpp:18:1: error: stray '\302' in program
     if(s <= n) return 1;

 ^
partitiinumar.cpp:18:1: error: stray '\240' in program
partitiinumar.cpp:18:1: error: stray '\302' in program
partitiinumar.cpp:18:1: error: stray '\240' in program
partitiinumar.cpp:18:1: error: stray '\302' in program
partitiinumar.cpp:18:1: error: stray '\240' in program
partitiinumar.cpp:18:1: error: stray '\302' in program
partitiinumar.cpp:18:1: error: stray '\240' in program
partitiinumar.cpp:18:1: error: stray '\302' in program
partitiinumar.cpp:18:1: error: stray '\240' in program
partitiinumar.cpp:18:1: error: stray '\302' in program
partitiinumar.cpp:18:1: error: stray '\240' in program
partitiinumar.cpp:18:1: error: stray '\302' in program
partitiinumar.cpp:18:1: error: stray '\240' in program
partitiinumar.cpp:18:1: error: stray '\302' in program
partitiinumar.cpp:18:1: error: stray '\240' in program
partitiinumar.cpp:19:1: error: stray '\302' in program
     return 0;

 ^
partitiinumar.cpp:19:1: error: stray '\240' in program
partitiinumar.cpp:19:1: error: stray '\302' in program
partitiinumar.cpp:19:1: error: stray '\240' in program
partitiinumar.cpp:19:1: error: stray '\302' in program
partitiinumar.cpp:19:1: error: stray '\240' in program
partitiinumar.cpp:19:1: error: stray '\302' in program
partitiinumar.cpp:19:1: error: stray '\240' in program
partitiinumar.cpp:19:1: error: stray '\302' in program
partitiinumar.cpp:19:1: error: stray '\240' in program
partitiinumar.cpp:21:1: error: stray '\302' in program
 int backtracking(int k)

 ^
partitiinumar.cpp:21:1: error: stray '\240' in program
partitiinumar.cpp:21:1: error: stray '\302' in program
partitiinumar.cpp:21:1: error: stray '\240' in program
partitiinumar.cpp:23:1: error: stray '\302' in program
     if(s == n) afisare(k - 1);

 ^
partitiinumar.cpp:23:1: error: stray '\240' in program
partitiinumar.cpp:23:1: error: stray '\302' in program
partitiinumar.cpp:23:1: error: stray '\240' in program
partitiinumar.cpp:23:1: error: stray '\302' in program
partitiinumar.cpp:23:1: error: stray '\240' in program
partitiinumar.cpp:23:1: error: stray '\302' in program
partitiinumar.cpp:23:1: error: stray '\240' in program
partitiinumar.cpp:23:1: error: stray '\302' in program
partitiinumar.cpp:23:1: error: stray '\240' in program
partitiinumar.cpp:23:1: error: stray '\302' in program
partitiinumar.cpp:23:1: error: stray '\240' in program
partitiinumar.cpp:23:1: error: stray '\302' in program
partitiinumar.cpp:23:1: error: stray '\240' in program
partitiinumar.cpp:23:1: error: stray '\302' in program
partitiinumar.cpp:23:1: error: stray '\240' in program
partitiinumar.cpp:23:1: error: stray '\302' in program
partitiinumar.cpp:23:1: error: stray '\240' in program
partitiinumar.cpp:24:1: error: stray '\302' in program
     for(int i = 1; i <= n - k + 1; i ++)

 ^
partitiinumar.cpp:24:1: error: stray '\240' in program
partitiinumar.cpp:24:1: error: stray '\302' in program
partitiinumar.cpp:24:1: error: stray '\240' in program
partitiinumar.cpp:24:1: error: stray '\302' in program
partitiinumar.cpp:24:1: error: stray '\240' in program
partitiinumar.cpp:24:1: error: stray '\302' in program
partitiinumar.cpp:24:1: error: stray '\240' in program
partitiinumar.cpp:24:1: error: stray '\302' in program
partitiinumar.cpp:24:1: error: stray '\240' in program
partitiinumar.cpp:24:1: error: stray '\302' in program
partitiinumar.cpp:24:1: error: stray '\240' in program
partitiinumar.cpp:24:1: error: stray '\302' in program
partitiinumar.cpp:24:1: error: stray '\240' in program
partitiinumar.cpp:24:1: error: stray '\302' in program
partitiinumar.cpp:24:1: error: stray '\240' in program
partitiinumar.cpp:24:1: error: stray '\302' in program
partitiinumar.cpp:24:1: error: stray '\240' in program
partitiinumar.cpp:24:1: error: stray '\302' in program
partitiinumar.cpp:24:1: error: stray '\240' in program
partitiinumar.cpp:24:1: error: stray '\302' in program
partitiinumar.cpp:24:1: error: stray '\240' in program
partitiinumar.cpp:24:1: error: stray '\302' in program
partitiinumar.cpp:24:1: error: stray '\240' in program
partitiinumar.cpp:24:1: error: stray '\302' in program
partitiinumar.cpp:24:1: error: stray '\240' in program
partitiinumar.cpp:24:1: error: stray '\302' in program
partitiinumar.cpp:24:1: error: stray '\240' in program
partitiinumar.cpp:24:1: error: stray '\302' in program
partitiinumar.cpp:24:1: error: stray '\240' in program
partitiinumar.cpp:24:1: error: stray '\302' in program
partitiinumar.cpp:24:1: error: stray '\240' in program
partitiinumar.cpp:25:1: error: stray '\302' in program
     {

 ^
partitiinumar.cpp:25:1: error: stray '\240' in program
partitiinumar.cpp:25:1: error: stray '\302' in program
partitiinumar.cpp:25:1: error: stray '\240' in program
partitiinumar.cpp:25:1: error: stray '\302' in program
partitiinumar.cpp:25:1: error: stray '\240' in program
partitiinumar.cpp:25:1: error: stray '\302' in program
partitiinumar.cpp:25:1: error: stray '\240' in program
partitiinumar.cpp:26:1: error: stray '\302' in program
         x[k] = i;

 ^
partitiinumar.cpp:26:1: error: stray '\240' in program
partitiinumar.cpp:26:1: error: stray '\302' in program
partitiinumar.cpp:26:1: error: stray '\240' in program
partitiinumar.cpp:26:1: error: stray '\302' in program
partitiinumar.cpp:26:1: error: stray '\240' in program
partitiinumar.cpp:26:1: error: stray '\302' in program
partitiinumar.cpp:26:1: error: stray '\240' in program
partitiinumar.cpp:26:1: error: stray '\302' in program
partitiinumar.cpp:26:1: error: stray '\240' in program
partitiinumar.cpp:26:1: error: stray '\302' in program
partitiinumar.cpp:26:1: error: stray '\240' in program
partitiinumar.cpp:26:1: error: stray '\302' in program
partitiinumar.cpp:26:1: error: stray '\240' in program
partitiinumar.cpp:26:1: error: stray '\302' in program
partitiinumar.cpp:26:1: error: stray '\240' in program
partitiinumar.cpp:26:1: error: stray '\302' in program
partitiinumar.cpp:26:1: error: stray '\240' in program
partitiinumar.cpp:26:1: error: stray '\302' in program
partitiinumar.cpp:26:1: error: stray '\240' in program
partitiinumar.cpp:27:1: error: stray '\302' in program
         if(cont(k))

 ^
partitiinumar.cpp:27:1: error: stray '\240' in program
partitiinumar.cpp:27:1: error: stray '\302' in program
partitiinumar.cpp:27:1: error: stray '\240' in program
partitiinumar.cpp:27:1: error: stray '\302' in program
partitiinumar.cpp:27:1: error: stray '\240' in program
partitiinumar.cpp:27:1: error: stray '\302' in program
partitiinumar.cpp:27:1: error: stray '\240' in program
partitiinumar.cpp:27:1: error: stray '\302' in program
partitiinumar.cpp:27:1: error: stray '\240' in program
partitiinumar.cpp:27:1: error: stray '\302' in program
partitiinumar.cpp:27:1: error: stray '\240' in program
partitiinumar.cpp:27:1: error: stray '\302' in program
partitiinumar.cpp:27:1: error: stray '\240' in program
partitiinumar.cpp:27:1: error: stray '\302' in program
partitiinumar.cpp:27:1: error: stray '\240' in program
partitiinumar.cpp:28:1: error: stray '\302' in program
             backtracking(k + 1);

 ^
partitiinumar.cpp:28:1: error: stray '\240' in program
partitiinumar.cpp:28:1: error: stray '\302' in program
partitiinumar.cpp:28:1: error: stray '\240' in program
partitiinumar.cpp:28:1: error: stray '\302' in program
partitiinumar.cpp:28:1: error: stray '\240' in program
partitiinumar.cpp:28:1: error: stray '\302' in program
partitiinumar.cpp:28:1: error: stray '\240' in program
partitiinumar.cpp:28:1: error: stray '\302' in program
partitiinumar.cpp:28:1: error: stray '\240' in program
partitiinumar.cpp:28:1: error: stray '\302' in program
partitiinumar.cpp:28:1: error: stray '\240' in program
partitiinumar.cpp:28:1: error: stray '\302' in program
partitiinumar.cpp:28:1: error: stray '\240' in program
partitiinumar.cpp:28:1: error: stray '\302' in program
partitiinumar.cpp:28:1: error: stray '\240' in program
partitiinumar.cpp:28:1: error: stray '\302' in program
partitiinumar.cpp:28:1: error: stray '\240' in program
partitiinumar.cpp:28:1: error: stray '\302' in program
partitiinumar.cpp:28:1: error: stray '\240' in program
partitiinumar.cpp:28:1: error: stray '\302' in program
partitiinumar.cpp:28:1: error: stray '\240' in program
partitiinumar.cpp:28:1: error: stray '\302' in program
partitiinumar.cpp:28:1: error: stray '\240' in program
partitiinumar.cpp:28:1: error: stray '\302' in program
partitiinumar.cpp:28:1: error: stray '\240' in program
partitiinumar.cpp:28:1: error: stray '\302' in program
partitiinumar.cpp:28:1: error: stray '\240' in program
partitiinumar.cpp:29:1: error: stray '\302' in program
     }

 ^
partitiinumar.cpp:29:1: error: stray '\240' in program
partitiinumar.cpp:29:1: error: stray '\302' in program
partitiinumar.cpp:29:1: error: stray '\240' in program
partitiinumar.cpp:29:1: error: stray '\302' in program
partitiinumar.cpp:29:1: error: stray '\240' in program
partitiinumar.cpp:29:1: error: stray '\302' in program
partitiinumar.cpp:29:1: error: stray '\240' in program
partitiinumar.cpp:31:1: error: stray '\302' in program
 int main()

 ^
partitiinumar.cpp:31:1: error: stray '\240' in program
partitiinumar.cpp:33:1: error: stray '\302' in program
     freopen("partitiinumar.in", "r", stdin);

 ^
partitiinumar.cpp:33:1: error: stray '\240' in program
partitiinumar.cpp:33:1: error: stray '\302' in program
partitiinumar.cpp:33:1: error: stray '\240' in program
partitiinumar.cpp:33:1: error: stray '\302' in program
partitiinumar.cpp:33:1: error: stray '\240' in program
partitiinumar.cpp:33:1: error: stray '\302' in program
partitiinumar.cpp:33:1: error: stray '\240' in program
partitiinumar.cpp:33:1: error: stray '\302' in program
partitiinumar.cpp:33:1: error: stray '\240' in program
partitiinumar.cpp:33:1: error: stray '\302' in program
partitiinumar.cpp:33:1: error: stray '\240' in program
partitiinumar.cpp:34:1: error: stray '\302' in program
     freopen("partitiinumar.out", "w", stdout);

 ^
partitiinumar.cpp:34:1: error: stray '\240' in program
partitiinumar.cpp:34:1: error: stray '\302' in program
partitiinumar.cpp:34:1: error: stray '\240' in program
partitiinumar.cpp:34:1: error: stray '\302' in program
partitiinumar.cpp:34:1: error: stray '\240' in program
partitiinumar.cpp:34:1: error: stray '\302' in program
partitiinumar.cpp:34:1: error: stray '\240' in program
partitiinumar.cpp:34:1: error: stray '\302' in program
partitiinumar.cpp:34:1: error: stray '\240' in program
partitiinumar.cpp:34:1: error: stray '\302' in program
partitiinumar.cpp:34:1: error: stray '\240' in program
partitiinumar.cpp:35:1: error: stray '\302' in program
     scanf("%d", &n);

 ^
partitiinumar.cpp:35:1: error: stray '\240' in program
partitiinumar.cpp:35:1: error: stray '\302' in program
partitiinumar.cpp:35:1: error: stray '\240' in program
partitiinumar.cpp:35:1: error: stray '\302' in program
partitiinumar.cpp:35:1: error: stray '\240' in program
partitiinumar.cpp:35:1: error: stray '\302' in program
partitiinumar.cpp:35:1: error: stray '\240' in program
partitiinumar.cpp:35:1: error: stray '\302' in program
partitiinumar.cpp:35:1: error: stray '\240' in program
partitiinumar.cpp:36:1: error: stray '\302' in program
     backtracking(1);

 ^
partitiinumar.cpp:36:1: error: stray '\240' in program
partitiinumar.cpp:36:1: error: stray '\302' in program
partitiinumar.cpp:36:1: error: stray '\240' in program
partitiinumar.cpp:36:1: error: stray '\302' in program
partitiinumar.cpp:36:1: error: stray '\240' in program
partitiinumar.cpp:36:1: error: stray '\302' in program
partitiinumar.cpp:36:1: error: stray '\240' in program
partitiinumar.cpp:37:1: error: stray '\302' in program
     return 0;

 ^
partitiinumar.cpp:37:1: error: stray '\240' in program
partitiinumar.cpp:37:1: error: stray '\302' in program
partitiinumar.cpp:37:1: error: stray '\240' in program
partitiinumar.cpp:37:1: error: stray '\302' in program
partitiinumar.cpp:37:1: error: stray '\240' in program
partitiinumar.cpp:37:1: error: stray '\302' in program
partitiinumar.cpp:37:1: error: stray '\240' in program
partitiinumar.cpp:37:1: error: stray '\302' in program
partitiinumar.cpp:37:1: error: stray '\240' in program
partitiinumar.cpp: In function 'int afisare(int)':
partitiinumar.cpp:9:37: error: 'printf' was not declared in this scope
         printf("%d ", x[i]);

                                     ^
partitiinumar.cpp:10:20: error: 'printf' was not declared in this scope
     printf("\n");

                    ^
partitiinumar.cpp:11:1: warning: no return statement in function returning non-void [-Wreturn-type]
 }

 ^
partitiinumar.cpp: In function 'int backtracking(int)':
partitiinumar.cpp:30:1: warning: no return statement in function returning non-void [-Wreturn-type]
 }

 ^
partitiinumar.cpp: In function 'int main()':
partitiinumar.cpp:33:44: error: 'stdin' was not declared in this scope
     freopen("partitiinumar.in", "r", stdin);

                                            ^
partitiinumar.cpp:33:49: error: 'freopen' was not declared in this scope
     freopen("partitiinumar.in", "r", stdin);

                                                 ^
partitiinumar.cpp:34:45: error: 'stdout' was not declared in this scope
     freopen("partitiinumar.out", "w", stdout);

                                             ^
partitiinumar.cpp:35:24: error: 'scanf' was not declared in this scope
     scanf("%d", &n);

                        ^

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