Borderou de evaluare (job #1782167)
Utilizator | Data | 17 octombrie 2016 20:52:02 | |
---|---|---|---|
Problema | Laser | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:25:15: error: ‘int index [520]’ redeclared as different kind of symbol
int index[nmax];
^
In file included from /usr/include/c++/4.8/cstring:42:0,
from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:48,
from user.cpp:1:
/usr/include/string.h:482:1: error: previous declaration of ‘const char* index(const char*, int)’
index (__const char *__s, int __c) __THROW
^
user.cpp: In function ‘void read_input()’:
user.cpp:75:30: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘bool*’ [-Wformat=]
scanf("%d", &light[i]);
^
user.cpp: In function ‘void run_gauss(int, int)’:
user.cpp:121:16: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript
index[i] = p;
^
user.cpp:139:41: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript
double angle = atan2(ray[index[i]].y, ray[index[i]].x) * 180 / PI;
^
user.cpp:139:58: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript
double angle = atan2(ray[index[i]].y, ray[index[i]].x) * 180 / PI;
^
user.cpp: In function ‘void read_input()’:
user.cpp:67:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
^
user.cpp:70:45: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%lf %lf", &v[i].x1, &v[i].y1);
^
user.cpp:71:45: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%lf %lf", &v[i].x2, &v[i].y2);
^
user.cpp:75:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &light[i]);
^
user.cpp: In function ‘int main()’:
user.cpp:148:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("laser.in","r",stdin);
^
user.cpp:149:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("laser.out","w",stdout);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !