F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_39691317_9478.cpp:1:2: error: invalid preprocessing directive #inlcude; did you mean #include?
    1 | #inlcude<bits/stdc++.h>
      |  ^~~~~~~
      |  include
0_0_39691317_9478.cpp:3:1: error: 'string' does not name a type
    3 | string add(const string &a, const string &b) {
      | ^~~~~~
0_0_39691317_9478.cpp: In function 'int main()':
0_0_39691317_9478.cpp:19:5: error: 'string' was not declared in this scope
   19 |     string fibonacciNumbers[MAX_FIB];
      |     ^~~~~~
0_0_39691317_9478.cpp:1:1: note: 'std::string' is defined in header '<string>'; did you forget to '#include <string>'?
  +++ |+#include <string>
    1 | #inlcude<bits/stdc++.h>
0_0_39691317_9478.cpp:20:5: error: 'fibonacciNumbers' was not declared in this scope
   20 |     fibonacciNumbers[1] = "1";
      |     ^~~~~~~~~~~~~~~~
0_0_39691317_9478.cpp:23:31: error: 'add' was not declared in this scope
   23 |         fibonacciNumbers[i] = add(fibonacciNumbers[i - 1], fibonacciNumbers[i - 2]);
      |                               ^~~
0_0_39691317_9478.cpp:28:11: error: expected ';' before 'a'
   28 |     string a, b;
      |           ^~
      |           ;
0_0_39691317_9478.cpp:29:12: error: 'cin' was not declared in this scope
   29 |     while (cin>>a>>b&&a!="0"&&b!="0") {
      |            ^~~
0_0_39691317_9478.cpp:1:1: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
  +++ |+#include <iostream>
    1 | #inlcude<bits/stdc++.h>
0_0_39691317_9478.cpp:29:17: error: 'a' was not declared in this scope
   29 |     while (cin>>a>>b&&a!="0"&&b!="0") {
      |                 ^
0_0_39691317_9478.cpp:29:20: error: 'b' was not declared in this scope
   29 |     while (cin>>a>>b&&a!="0"&&b!="0") {
      |                    ^
0_0_39691317_9478.cpp:38:9: error: 'cout' was not declared in this scope
   38 |         cout << count << endl;
      |         ^~~~
0_0_39691317_9478.cpp:38:9: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
0_0_39691317_9478.cpp:38:26: error: 'endl' was not declared in this scope
   38 |         cout << count << endl;
      |                          ^~~~
0_0_39691317_9478.cpp:1:1: note: 'std::endl' is defined in header '<ostream>'; did you forget to '#include <ostream>'?
  +++ |+#include <ostream>
    1 | #inlcude<bits/stdc++.h>


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-17 08:26:37, Gzip enabled