Borderou de evaluare (job #1028535)

Utilizator GabiMMarincu Gabriel GabiM Data 14 noiembrie 2013 12:01:34
Problema Pali Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:14:4: error: expected initializer before ‘a’ ob a[1000]; ^ user.cpp: In function ‘void load()’: user.cpp:26:10: error: ‘n’ was not declared in this scope f >> n >> gmax; ^ user.cpp:26:15: error: ‘gmax’ was not declared in this scope f >> n >> gmax; ^ user.cpp:29:14: error: ‘a’ was not declared in this scope f >> a[i].g >> a[i].c; ^ user.cpp:30:9: error: ‘pg’ was not declared in this scope pg = (a[i].c*1.0)/a[i].c; ^ user.cpp: In function ‘void greedy()’: user.cpp:36:9: error: ‘i’ was not declared in this scope for(i=1;i<=n;i++) ^ user.cpp:36:16: error: ‘n’ was not declared in this scope for(i=1;i<=n;i++) ^ user.cpp:37:14: error: ‘j’ was not declared in this scope for (j=i+1;j<=n;j) ^ user.cpp:40:9: error: ‘G’ was not declared in this scope G = 0; ^ user.cpp:41:26: error: ‘a’ was not declared in this scope for (j=1;j<=n&&G+a[i].g<=gmax;j++) ^ user.cpp:41:34: error: ‘gmax’ was not declared in this scope for (j=1;j<=n&&G+a[i].g<=gmax;j++) ^ user.cpp: In function ‘int main()’: user.cpp:51:5: error: ‘cout’ was not declared in this scope cout << "Hello world!" << endl; ^

Ceva nu functioneaza?