Borderou de evaluare (job #2367201)
Utilizator | Data | 5 martie 2019 09:25:39 | |
---|---|---|---|
Problema | Perle | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:1:25: warning: extra tokens at end of #include directive
#include <bits/stdc++.h>;
^
main.cpp:2:19: error: expected ']' before ';' token
#define nmax 10025;
^
main.cpp:8:10: note: in expansion of macro 'nmax'
int n, v[nmax];
^~~~
main.cpp:8:14: error: expected unqualified-id before ']' token
int n, v[nmax];
^
main.cpp: In function 'int perlaB(int)':
main.cpp:15:9: error: 'v' was not declared in this scope
if (v[pozitie] == 2)
^
main.cpp:17:9: error: 'v' was not declared in this scope
if (v[pozitie] == 1 && v[pozitie + 2] == 3)
^
main.cpp:17:26: error: 'amp' was not declared in this scope
if (v[pozitie] == 1 && v[pozitie + 2] == 3)
^~~
main.cpp:17:29: error: expected ')' before ';' token
if (v[pozitie] == 1 && v[pozitie + 2] == 3)
^
main.cpp:17:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if (v[pozitie] == 1 && v[pozitie + 2] == 3)
^~
main.cpp:17:30: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
if (v[pozitie] == 1 && v[pozitie + 2] == 3)
^
main.cpp:17:31: error: 'amp' was not declared in this scope
if (v[pozitie] == 1 && v[pozitie + 2] == 3)
^~~
main.cpp:17:36: error: 'v' was not declared in this scope
if (v[pozitie] == 1 && v[pozitie + 2] == 3)
^
main.cpp: In function 'int perlaC(int)':
main.cpp:24:9: error: 'v' was not declared in this scope
if (v[pozitie] == 2)
^
main.cpp:26:9: error: 'v' was not declared in this scope
if (v[pozitie] == 3)
^
main.cpp:28:9: error: 'v' was not declared in this scope
if (v[pozitie] == 1 && v[pozitie + 1] == 2)
^
main.cpp:28:26: error: 'amp' was not declared in this scope
if (v[pozitie] == 1 && v[pozitie + 1] == 2)
^~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !