Borderou de evaluare (job #1000215)

Utilizator Gusti666Lucaciu Catalin Gusti666 Data 22 septembrie 2013 14:12:34
Problema Hacker3 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:9:1: error: expected initializer before ‘int’ int a[nmax],b[nmax],cost1; ^ user.cpp: In function ‘int main()’: user.cpp:16:4: error: ‘a’ was not declared in this scope f>>a[i]>>b[i]; ^ user.cpp:16:10: error: ‘b’ was not declared in this scope f>>a[i]>>b[i]; ^ user.cpp:18:4: error: ‘a’ was not declared in this scope f>>a[i]>>b[i]; ^ user.cpp:18:10: error: ‘b’ was not declared in this scope f>>a[i]>>b[i]; ^ user.cpp:19:1: error: ‘cost1’ was not declared in this scope cost1=min(a[mid+1],b[mid+1]); ^ user.cpp:19:11: error: ‘a’ was not declared in this scope cost1=min(a[mid+1],b[mid+1]); ^ user.cpp:19:20: error: ‘b’ was not declared in this scope cost1=min(a[mid+1],b[mid+1]); ^ user.cpp:53:4: error: ‘a’ was not declared in this scope f>>a[i]>>b[i]; ^ user.cpp:53:10: error: ‘b’ was not declared in this scope f>>a[i]>>b[i]; ^ user.cpp:56:4: error: ‘a’ was not declared in this scope f>>a[i]>>b[i]; ^ user.cpp:56:10: error: ‘b’ was not declared in this scope f>>a[i]>>b[i]; ^ user.cpp:57:1: error: ‘cost1’ was not declared in this scope cost1=min(a[mid],b[mid]); ^ user.cpp:57:11: error: ‘a’ was not declared in this scope cost1=min(a[mid],b[mid]); ^ user.cpp:57:18: error: ‘b’ was not declared in this scope cost1=min(a[mid],b[mid]); ^

Ceva nu functioneaza?