#1329
Sa se verifice dacă un şir dat este şir zigzag.
| Problema | sir_zigzag | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64434835 | Utilizator | |
| Fișier | sir_zigzag.cpp | Dimensiune | 630 B |
| Data încărcării | 06 Mai 2026, 18:56 | Scor/rezultat | Eroare de compilare |
sir_zigzag.cpp:16:13: error: stray ‘#’ in program 16 | if(!(#include <bits/stdc++.h> | ^ sir_zigzag.cpp: In function ‘int main()’: sir_zigzag.cpp:16:14: error: ‘include’ was not declared in this scope 16 | if(!(#include <bits/stdc++.h> | ^~~~~~~ sir_zigzag.cpp:16:23: error: ‘bits’ was not declared in this scope 16 | if(!(#include <bits/stdc++.h> | ^~~~ sir_zigzag.cpp:16:28: error: ‘stdc’ was not declared in this scope; did you mean ‘std’? 16 | if(!(#include <bits/stdc++.h> | ^~~~ | std sir_zigzag.cpp:18:1: error: expected primary-expression before ‘using’ 18 | using namespace std; | ^~~~~ sir_zigzag.cpp:16:37: error: expected ‘)’ before ‘using’ 16 | if(!(#include <bits/stdc++.h> | ~ ^ | ) 17 | 18 | using namespace std; | ~~~~~ sir_zigzag.cpp:18:20: error: expected ‘)’ before ‘;’ token 18 | using namespace std; | ^ | ) sir_zigzag.cpp:16:10: note: to match this ‘(’ 16 | if(!(#include <bits/stdc++.h> | ^ sir_zigzag.cpp:20:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse] 20 | int main() | ^~ sir_zigzag.cpp:20:9: note: remove parentheses to default-initialize a variable 20 | int main() | ^~ | -- sir_zigzag.cpp:20:9: note: or replace parentheses with braces to value-initialize a variable sir_zigzag.cpp:21:1: error: a function-definition is not allowed here before ‘{’ token 21 | { | ^ sir_zigzag.cpp:40:2: error: expected ‘}’ at end of input 40 | } | ^ sir_zigzag.cpp:15:5: note: to match this ‘{’ 15 | { | ^ sir_zigzag.cpp:40:2: error: expected ‘}’ at end of input 40 | } | ^ sir_zigzag.cpp:6:1: note: to match this ‘{’ 6 | { | ^ sir_zigzag.cpp:7:21: warning: unused variable ‘c’ [-Wunused-variable] 7 | int v[1001],a,b,c,i,j,k,maxx=-999999999,minn=10; | ^ sir_zigzag.cpp:7:25: warning: unused variable ‘j’ [-Wunused-variable] 7 | int v[1001],a,b,c,i,j,k,maxx=-999999999,minn=10; | ^ sir_zigzag.cpp:7:27: warning: unused variable ‘k’ [-Wunused-variable] 7 | int v[1001],a,b,c,i,j,k,maxx=-999999999,minn=10; | ^ sir_zigzag.cpp:7:29: warning: unused variable ‘maxx’ [-Wunused-variable] 7 | int v[1001],a,b,c,i,j,k,maxx=-999999999,minn=10; | ^~~~ sir_zigzag.cpp:7:45: warning: unused variable ‘minn’ [-Wunused-variable] 7 | int v[1001],a,b,c,i,j,k,maxx=-999999999,minn=10; | ^~~~
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema sir_zigzag 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ă.