fork download
  1. int ans[6] = {1,1,1,1,1,1} //номера правильніх ответов на вопрос.
  2. string que[0][0] = "вопрос1";
  3. string que[0][1] = "ответ1";
  4. string que[0][2] = "ответ2";
  5. string que[0][3] = "ответ3";
  6. string que[1][0] = "вопрос2";
  7.  
  8. int a;
  9. for(int i=0; i<6;i++)
  10. {
  11. cout « que[i][0] « endl « que[i][1] « endl « que[i][2] « endl « que[i][3];
  12. cin » a;
  13. if(ans[i]==a) cout « "pravilno" « endl;
  14. else cout « "neverno" « endl;
  15. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:11:1: error: stray '\302' in program
 cout « que[i][0] « endl « que[i][1] « endl « que[i][2] « endl « que[i][3];
 ^
prog.cpp:11:1: error: stray '\253' in program
prog.cpp:11:1: error: stray '\302' in program
prog.cpp:11:1: error: stray '\253' in program
prog.cpp:11:1: error: stray '\302' in program
prog.cpp:11:1: error: stray '\253' in program
prog.cpp:11:1: error: stray '\302' in program
prog.cpp:11:1: error: stray '\253' in program
prog.cpp:11:1: error: stray '\302' in program
prog.cpp:11:1: error: stray '\253' in program
prog.cpp:11:1: error: stray '\302' in program
prog.cpp:11:1: error: stray '\253' in program
prog.cpp:11:1: error: stray '\302' in program
prog.cpp:11:1: error: stray '\253' in program
prog.cpp:12:1: error: stray '\302' in program
 cin » a;
 ^
prog.cpp:12:1: error: stray '\273' in program
prog.cpp:13:1: error: stray '\302' in program
 if(ans[i]==a) cout « "pravilno" « endl;
 ^
prog.cpp:13:1: error: stray '\253' in program
prog.cpp:13:1: error: stray '\302' in program
prog.cpp:13:1: error: stray '\253' in program
prog.cpp:14:1: error: stray '\302' in program
 else cout « "neverno" « endl;
 ^
prog.cpp:14:1: error: stray '\253' in program
prog.cpp:14:1: error: stray '\302' in program
prog.cpp:14:1: error: stray '\253' in program
prog.cpp:2:1: error: expected ',' or ';' before 'string'
 string que[0][0] = "вопрос1";
 ^
prog.cpp:3:1: error: 'string' does not name a type
 string que[0][1] = "ответ1";
 ^
prog.cpp:4:1: error: 'string' does not name a type
 string que[0][2] = "ответ2";
 ^
prog.cpp:5:1: error: 'string' does not name a type
 string que[0][3] = "ответ3";
 ^
prog.cpp:6:1: error: 'string' does not name a type
 string que[1][0] = "вопрос2";
 ^
prog.cpp:9:1: error: expected unqualified-id before 'for'
 for(int i=0; i<6;i++)
 ^
prog.cpp:9:14: error: 'i' does not name a type
 for(int i=0; i<6;i++)
              ^
prog.cpp:9:18: error: 'i' does not name a type
 for(int i=0; i<6;i++)
                  ^
stdout
Standard output is empty