Borderou de evaluare (job #1653090)

Utilizator GavanescuAlexgavanescu claudiu GavanescuAlex Data 15 martie 2016 18:43:25
Problema Coco Chanel Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:19:13: error: no match for ‘operator[]’ (operand types are ‘std::ofstream {aka std::basic_ofstream<char>}’ and ‘int’) f>>g[j]; ^ user.cpp:26:17: error: no match for ‘operator[]’ (operand types are ‘std::ofstream {aka std::basic_ofstream<char>}’ and ‘int’) if(g[i]<g[j]) ^ user.cpp:26:22: error: no match for ‘operator[]’ (operand types are ‘std::ofstream {aka std::basic_ofstream<char>}’ and ‘int’) if(g[i]<g[j]) ^ user.cpp:28:17: error: ‘aux’ was not declared in this scope aux=g[i]; ^ user.cpp:28:22: error: no match for ‘operator[]’ (operand types are ‘std::ofstream {aka std::basic_ofstream<char>}’ and ‘int’) aux=g[i]; ^ user.cpp:29:18: error: no match for ‘operator[]’ (operand types are ‘std::ofstream {aka std::basic_ofstream<char>}’ and ‘int’) g[i]=g[j]; ^ user.cpp:29:23: error: no match for ‘operator[]’ (operand types are ‘std::ofstream {aka std::basic_ofstream<char>}’ and ‘int’) g[i]=g[j]; ^ user.cpp:30:18: error: no match for ‘operator[]’ (operand types are ‘std::ofstream {aka std::basic_ofstream<char>}’ and ‘int’) g[j]=aux; ^ user.cpp:38:22: error: no match for ‘operator[]’ (operand types are ‘std::ofstream {aka std::basic_ofstream<char>}’ and ‘int’) if(c[i]<g[j]) ^ user.cpp:8:13: warning: unused variable ‘u’ [-Wunused-variable] int n,m,u,j,cnt=0,i; ^ user.cpp:45:5: error: expected ‘}’ at end of input } ^

Ceva nu functioneaza?