Borderou de evaluare (job #2266235)

Utilizator MDiana15Diana M MDiana15 Data 22 octombrie 2018 15:18:29
Problema Drept 2 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:7:11: error: expected unqualified-id before 'int' int x,int y; ^~~ main.cpp: In function 'int main()': main.cpp:14:29: warning: too many arguments for format [-Wformat-extra-args] scanf("%d%d",&n,&m,&A,&B); ^ main.cpp:15:23: error: 'scnaf' was not declared in this scope scnaf("%d%d",&k,&l); ^ main.cpp:17:10: error: 'struct punct' has no member named 'y' a[1].y=l; ^ main.cpp:23:14: error: 'struct punct' has no member named 'y' a[i].y=p-l+k-1; ^ main.cpp:28:36: error: 'front' was not declared in this scope while(!d.empty()&&(a[front()].y-a[front()].x+1)<A) d.pop_front(); ^ main.cpp:29:9: error: 'st' was not declared in this scope st=a[d.front()].x; ^~ main.cpp:30:9: error: 'dr' was not declared in this scope dr=a[d.front()].y; ^~ main.cpp:30:25: error: 'struct punct' has no member named 'y' dr=a[d.front()].y; ^ main.cpp:31:17: error: 'struct punct' has no member named 'y' if(a[i].y-a[i].x+1>=A) ^ main.cpp:35:28: error: 'struct punct' has no member named 'y' dr=max(dr,a[i].y); ^ main.cpp:12:35: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("drept2.in","r",stdin); ^ main.cpp:13:37: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("drept2.out","w",stdout); ^ main.cpp:14:30: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d",&n,&m,&A,&B); ^ Non zero exit status: 1

Ceva nu functioneaza?