Borderou de evaluare (job #2517053)
Utilizator | Data | 2 ianuarie 2020 20:03:06 | |
---|---|---|---|
Problema | Zona | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:1:1: error: 'include' does not name a type
include <bits/stdc++.h>
^~~~~~~
main.cpp:7:13: error: array bound is not an integer constant before ']' token
int op[1 + L];
^
main.cpp:9:27: error: too many initializers for 'int [4]'
int dx[4] = {0,-1, 0, 1, 0};
^
main.cpp:11:28: error: too many initializers for 'int [4]'
int dy[4] = {0,0 , 1, 0, -1};
^
main.cpp:13:11: error: array bound is not an integer constant before ']' token
int a[5+ N][1 + N];
^
main.cpp:13:18: error: array bound is not an integer constant before ']' token
int a[5+ N][1 + N];
^
main.cpp:15:11: error: array bound is not an integer constant before ']' token
int v[5+ N][1 + N];
^
main.cpp:15:18: error: array bound is not an integer constant before ']' token
int v[5+ N][1 + N];
^
main.cpp: In function 'int main()':
main.cpp:20:1: error: 'cin' was not declared in this scope
cin >> x >> y >> n >> l;
^~~
main.cpp:22:1: error: 'a' was not declared in this scope
a[x][y] = 1;
^
main.cpp:26:8: error: 'op' was not declared in this scope
cin >> op[i];
^~
main.cpp:27:6: error: 'dl' was not declared in this scope
x += dl[op[i]];
^~
main.cpp:29:6: error: 'dc' was not declared in this scope
y += dc[op[i]];
^~
main.cpp:37:1: error: 'cout' was not declared in this scope
cout << l - a[x][y] + 1 << '\n';
^~~~
main.cpp:43:6: error: 'dl' was not declared in this scope
x += dl[op[i]];
^~
main.cpp:43:9: error: 'op' was not declared in this scope
x += dl[op[i]];
^~
main.cpp:45:6: error: 'dc' was not declared in this scope
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !