compiler is invalid

Hello. I´m using code::blocks 13.12 for the first time. When I run the above code thr progras displays "Demo - Debug": The compiler's setup (GNU GCC Compiler for ARM) is invalid, so Code::Blocks cannot find/run the compiler.
Probably the toolchain path within the compiler options is not setup correctly?! (Do you have a compiler installed?)
Goto "Settings->Compiler...->Global compiler settings->GNU GCC Compiler for ARM->Toolchain executables" and fix the compiler's setup.
Skipping...
I tried several to follow the above instruction by failed
Could you help me how to fix this error?
Many thanks

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
 #include <iostream>

using std::cout;
using std::cin;
using std::endl;

int main() {
   int score_1, int_score_2, int_score_3;

   cout << "Type the scores: " << endl;
   cout << "_________________________________" << endl;

   cout << "score 1: ";
   cin >> score_1;
   cout << endl;

   cout << "score 2: ";
   cin >> score_2;
   cout << endl;

   cout << "score 3: ";
   cin >> score_3;
   cout << endl;

   int average = (score_1 + score_2 + score_) / 3;

  
   switch (average) (
   case 1:
   case 2:
   case 3:
   case 4: cout << "C-..." << endlo; break;

   case 5:
   case 6: cout << "B..." << endl; break;

   default: cout << "A+..." << endl; break;

   cout << endl;                  )
   return 0;
}
As your IDE tell you, you configured it wrong.
1) Why are you usng GCC for ARM?
2) Which package of C::B do you use? With MinGW or without?
Thanks for your reply.
As I am learning by my self I don't understand your first question. With second question I can only tell you that yesterday I used this application (codeblocks-13.12mingw-setup-TDM-GCC-481.exe) to install the program. then I followed the instruction.
Open Settings → Compiler and change Selected Compiler to GNU GCC Compiler. I think you have chnged it accidentally. If you did everything else correct that should be enough to get it working.
Thanks again
I did what you said but inLogs ^others window this message is displayed

compiler installed?)
Goto "Settings->Compiler...->Global compiler settings->GNU GCC Compiler for ARM->Toolchain executables" and fix the compiler's setup.
Skipping...
Nothing to be done (all items are up-to-date)

I am confused
Did you select GNU GCC Compiler and checked "Set as default"? Did you create new project after that?

C::B bundled with MinGW usually sets up in one click...
I did what say. Now is working.
Thank you very much indeed.
Topic archived. No new replies allowed.