Record Detail

Compile Error

In file included from /in/ex1.cpp:2:0:
/in/myPow.h:10:7: error: extra tokens at end of #endif directive [-Werror=endif-labels]
 #endif#pragma once
       ^
/in/ex1.cpp: In function 'int main()':
/in/ex1.cpp:11:10: error: 'myPow' was not declared in this scope
  cout << myPow(x, i) << endl;
          ^~~~~
/in/ex1.cpp:11:10: note: suggested alternative: 'mbtowc'
  cout << myPow(x, i) << endl;
          ^~~~~
          mbtowc
cc1plus: all warnings being treated as errors
In file included from /in/myPow.cpp:1:0:
/in/myPow.h:10:7: error: extra tokens at end of #endif directive [-Werror=endif-labels]
 #endif#pragma once
       ^
/in/myPow.cpp:5:12: error: stray '\243' in program
       int i��j;
            ^
/in/myPow.cpp:5:13: error: stray '\254' in program
       int i��j;
             ^
/in/myPow.cpp:3:12: error: expected unqualified-id before 'double'
 Solution1::double myPow(double x, int n)
            ^~~~~~
cc1plus: all warnings being treated as errors

Information

Submit By
Type
Submission
Homework
Homework 7
Language
C++
Submit At
2020-08-07 15:49:32
Judged At
2020-08-07 15:49:32
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes