#1192
Arhitectura2
Pentru un sir de n
numere naturale reprezentand inaltimile unor cladiri , sa se raspunda la o intrebare pentru fiecare element .
Problema | Arhitectura2 | Operații I/O |
arhitectura2.in /arhitectura2.out
|
---|---|---|---|
Limita timp | 1.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #55007989 | Utilizator | |
Fișier | arhitectura2.cpp | Dimensiune | 442 B |
Data încărcării | 16 Decembrie 2024, 12:05 | Scor / rezultat | Eroare de compilare |
arhitectura2.cpp: In function 'int main()': arhitectura2.cpp:7:5: error: expected ',' or ';' before 'ofstream' ofstream fout("arhitectura2.out") ^ arhitectura2.cpp:9:7: error: 'n' was not declared in this scope fin>>n; ^ arhitectura2.cpp:10:6: error: 'i' was not declared in this scope for(i=1;i<=n;i++) ^ arhitectura2.cpp:11:7: error: 'v' was not declared in this scope fin>>v[i]; ^ arhitectura2.cpp:12:6: error: 'i' was not declared in this scope for(i=1;i<n;i++) ^ arhitectura2.cpp:13:7: error: 'j' was not declared in this scope for(j=i+1;j<=n;j++) ^ arhitectura2.cpp:14:7: error: 'v' was not declared in this scope if(v[i]<v[j]) ^ arhitectura2.cpp:16:5: error: 'i' was not declared in this scope for(i=1;i<=n;i++) ^ arhitectura2.cpp:17:1: error: 'fout' was not declared in this scope fout<<v[i]<<" "; ^ arhitectura2.cpp:17:7: error: 'v' was not declared in this scope fout<<v[i]<<" "; ^ arhitectura2.cpp:18:1: error: 'fout' was not declared in this scope fout<<" "<<endl; ^ arhitectura2.cpp:19:5: error: 'i' was not declared in this scope for(i=2;i<n;i++) ^ arhitectura2.cpp:20:5: error: 'v' was not declared in this scope if(v[i]==(v[i-1]+v[i+1])/2) ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Arhitectura2 face parte din prima categorie. Soluția propusă de tine va fi evaluată astfel:
Suma punctajelor acordate pe testele utilizate pentru verificare este 100. Astfel, soluția ta poate obține cel mult 100 de puncte, caz în care se poate considera corectă.