#396
SCLM
Se dă un șir cu n
elemente, numere naturale. Determinați un cel mai lung subșir crescător al șirului.
Problema | SCLM | Operații I/O |
sclm.in /sclm.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #50042763 | Utilizator | |
Fișier | sclm.cpp | Dimensiune | 1.58 KB |
Data încărcării | 25 Martie 2024, 11:33 | Scor / rezultat | Eroare de compilare |
sclm.cpp:19:30: error: stray '#' in program for(j=i+1; j<=n; j++)#include <bits/stdc++.h> ^ sclm.cpp: In function 'void pd()': sclm.cpp:19:31: error: 'include' was not declared in this scope for(j=i+1; j<=n; j++)#include <bits/stdc++.h> ^ sclm.cpp:19:40: error: 'bits' was not declared in this scope for(j=i+1; j<=n; j++)#include <bits/stdc++.h> ^ sclm.cpp:19:45: error: 'stdc' was not declared in this scope for(j=i+1; j<=n; j++)#include <bits/stdc++.h> ^ sclm.cpp:20:1: error: expected primary-expression before 'using' using namespace std; ^ sclm.cpp:20:1: error: expected ';' before 'using' sclm.cpp:25:1: error: a function-definition is not allowed here before '{' token { ^ sclm.cpp:31:1: error: a function-definition is not allowed here before '{' token { ^ sclm.cpp:92:1: error: expected '}' at end of input } ^ sclm.cpp:23:5: warning: unused variable 'n' [-Wunused-variable] int n,k,a[1002],p[1002],L[1002],i,j; ^ sclm.cpp:23:7: warning: unused variable 'k' [-Wunused-variable] int n,k,a[1002],p[1002],L[1002],i,j; ^ sclm.cpp:23:9: warning: unused variable 'a' [-Wunused-variable] int n,k,a[1002],p[1002],L[1002],i,j; ^ sclm.cpp:23:17: warning: unused variable 'p' [-Wunused-variable] int n,k,a[1002],p[1002],L[1002],i,j; ^ sclm.cpp:23:25: warning: unused variable 'L' [-Wunused-variable] int n,k,a[1002],p[1002],L[1002],i,j; ^ sclm.cpp:23:33: warning: unused variable 'i' [-Wunused-variable] int n,k,a[1002],p[1002],L[1002],i,j; ^ sclm.cpp:23:35: warning: unused variable 'j' [-Wunused-variable] int n,k,a[1002],p[1002],L[1002],i,j; ^ sclm.cpp:92:1: error: expected '}' at end of input } ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema SCLM face parte din prima categorie. Soluția propusă de tine va fi evaluată astfel:
Suma punctajelor acordate pe testele utilizate pentru verificare este 100. Astfel, soluția ta poate obține cel mult 100 de puncte, caz în care se poate considera corectă.